OSDN Git Service

f2fs: stop issue discard if something wrong with f2fs
authorYunlei He <heyunlei@huawei.com>
Fri, 13 Apr 2018 03:08:05 +0000 (11:08 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 9 Jul 2018 00:28:41 +0000 (17:28 -0700)
commit937f4ef79e257735e03149815fb231c8d02e3a1f
treed25ca5e6b66a8e54ee30fdef500222f9c016a1b2
parenta6d74bb282adbae0319ede6a0de3b6983c3c3b46
f2fs: stop issue discard if something wrong with f2fs

v4->v5: move data corruption check to __submit_discard_cmd, in order to
control discard io submitted more accurately, besides, increase async
thread wait time if data corruption detected.

This patch stop async thread and umount process to issue discard
if something wrong with f2fs, which is similar to fstrim.

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c