mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
f2fs: submit bio after shutdown
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>
This commit is contained in:
parent
0ded69f632
commit
5ce805869c
1 changed files with 2 additions and 0 deletions
|
@ -533,6 +533,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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue