diff options
| author | Wang Jianchao <[email protected]> | 2021-08-30 07:52:46 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2021-08-31 03:35:53 +0000 |
| commit | 5036ab8df278f9879d8958679bd043e32515a3e4 (patch) | |
| tree | 6faf71ad1579daab0cfca48cdac8b85388b88158 /fs/ext4/fast_commit.c | |
| parent | ext4: get discard out of jbd2 commit kthread contex (diff) | |
| download | kernel-5036ab8df278f9879d8958679bd043e32515a3e4.tar.gz kernel-5036ab8df278f9879d8958679bd043e32515a3e4.zip | |
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: Wang Jianchao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions
