OSDN Git Service

f2fs: stop gc/discard thread after fs shutdown
authorChao Yu <yuchao0@huawei.com>
Thu, 18 Jan 2018 09:23:29 +0000 (17:23 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 8 Feb 2018 02:06:05 +0000 (18:06 -0800)
commit8069a0e983d999641331e3a7c8cda42de0ae1166
tree9ac9a2c714848284ecdd83b1006d26563fc4b172
parentbb924f777717669e420038c1edd0962ac9205111
f2fs: stop gc/discard thread after fs shutdown

Once filesystem shuts down, daemons like gc/discard thread should be
aware of it, and do exit, in addtion, drop all cached pending discard
commands and turn off real-time discard mode.

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