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>
Mon, 22 Jan 2018 22:56:55 +0000 (14:56 -0800)
commit7950e9ac638e84518fbdd5c930939ad46a1068c5
tree3ea4ea87d4151ed5929609caa7a5d3631b2ac00e
parentd027c48447c2c2fab2b2aa1833436cf24ea567e9
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