Skip to content
Commit 5036ab8d authored by Wang Jianchao's avatar Wang Jianchao Committed by Theodore Ts'o
Browse files

ext4: flush background discard kwork when retry allocation



The background discard kwork tries to mark blocks used and issue
discard. This can make filesystem suffer from NOSPC error, xfstest
generic/371 can fail due to it. Fix it by flushing discard kwork
in ext4_should_retry_alloc. At the same time, give up discard at
the moment.

Signed-off-by: default avatarWang Jianchao <wangjianchao@kuaishou.com>
Link: https://lore.kernel.org/r/20210830075246.12516-6-jianchao.wan9@gmail.com
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 55cdd0af
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment