]> git.ipfire.org Git - thirdparty/kernel/stable.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)
commitcce1325247b9faafc520c5789fe60feef1fd7092
treeb4b722ce5c23bb52fb36b9f9a291dc1314ea64e7
parentdaeb433e42de97c79622f58681972200eec1d8da
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