summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2018-09-06 11:40:12 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-20 18:46:12 +0100
commiteca5b74e008039b1477241a2d62ff76a4860b3d6 (patch)
tree28a783acbea99c7bef342b35656c5a5e9f736063 /fs
parent0f9c9a21628868cb79f89947ceed5b5dd8615541 (diff)
downloadlinux-stable-eca5b74e008039b1477241a2d62ff76a4860b3d6.tar.gz
linux-stable-eca5b74e008039b1477241a2d62ff76a4860b3d6.tar.bz2
linux-stable-eca5b74e008039b1477241a2d62ff76a4860b3d6.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/data.c2
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);
}