Commit eca5b74e authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by Greg Kroah-Hartman

f2fs: submit bio after shutdown

[ Upstream commit 5ce80586 ]

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: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0f9c9a21
...@@ -543,6 +543,8 @@ void f2fs_submit_page_write(struct f2fs_io_info *fio) ...@@ -543,6 +543,8 @@ void f2fs_submit_page_write(struct f2fs_io_info *fio)
if (fio->in_list) if (fio->in_list)
goto next; goto next;
out: out:
if (is_sbi_flag_set(sbi, SBI_IS_SHUTDOWN))
__submit_merged_bio(io);
up_write(&io->io_rwsem); up_write(&io->io_rwsem);
} }
......
Markdown is supported
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