diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-09-06 21:40:12 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-20 20:46:12 +0300 |
commit | eca5b74e008039b1477241a2d62ff76a4860b3d6 (patch) | |
tree | 28a783acbea99c7bef342b35656c5a5e9f736063 | |
parent | 0f9c9a21628868cb79f89947ceed5b5dd8615541 (diff) | |
download | linux-eca5b74e008039b1477241a2d62ff76a4860b3d6.tar.xz |
f2fs: submit bio after shutdown
[ Upstream commit 5ce805869cbed93267ed26552ff76e30f05c91f7 ]
Sometimes, some merged IOs could get a chance to be submitted, resulting in
system hang in shutdown test. This issues IOs all the time after shutdown.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index c61beaedf078..b4a634da1372 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -543,6 +543,8 @@ skip: if (fio->in_list) goto next; out: + if (is_sbi_flag_set(sbi, SBI_IS_SHUTDOWN)) + __submit_merged_bio(io); up_write(&io->io_rwsem); } |