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>
Thu, 28 Jun 2018 22:49:24 +0000 (15:49 -0700)
commitf60d3b8fcc92c44d81989b6637f496173c7d110a
treeeb8774c9dbf82f13e9182e958d4ba4afe6c18de4
parent4470ece5c075fd47f62a5fb8923d49850bfb7e69
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