OSDN Git Service

f2fs: do checkpoint in kill_sb
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 6 Jul 2018 23:47:34 +0000 (16:47 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 15 Jul 2018 03:14:04 +0000 (12:14 +0900)
commit1cb50f87e10696e8cc61fb62d0d948e11b0e6dc1
tree9e7c61605122c9eafbd7094cbdcef076998f242f
parent8a56dd9685d6531d09b370ab22a61b9687131875
f2fs: do checkpoint in kill_sb

When unmounting f2fs in force mode, we can get it stuck by io_schedule()
by some pending IOs in meta_inode.

io_schedule+0xd/0x30
wait_on_page_bit_common+0xc6/0x130
__filemap_fdatawait_range+0xbd/0x100
filemap_fdatawait_keep_errors+0x15/0x40
sync_inodes_sb+0x1cf/0x240
sync_filesystem+0x52/0x90
generic_shutdown_super+0x1d/0x110
kill_f2fs_super+0x28/0x80 [f2fs]
deactivate_locked_super+0x35/0x60
cleanup_mnt+0x36/0x70
task_work_run+0x79/0xa0
exit_to_usermode_loop+0x62/0x70
do_syscall_64+0xdb/0xf0
entry_SYSCALL_64_after_hwframe+0x44/0xa9
0xffffffffffffffff

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c