]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: stop gc/discard thread in prior during umount
authorChao Yu <yuchao0@huawei.com>
Thu, 29 Jun 2017 15:17:45 +0000 (23:17 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 7 Jul 2017 17:34:42 +0000 (10:34 -0700)
commitc8846aa336ea17ecbdea186030bfd4d972cf5bbf
treeb4b722ce5c23bb52fb36b9f9a291dc1314ea64e7
parentad381f3f2c7b4180b63d3d1a772d9ff872222512
f2fs: stop gc/discard thread in prior during umount

This patch resolves kernel panic for xfstests/081, caused by recent f2fs_bug_on

 f2fs: add f2fs_bug_on in __remove_discard_cmd

For fixing, we will stop gc/discard thread in prior in ->kill_sb in order to
avoid referring and releasing race among them.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c