]> asedeno.scripts.mit.edu Git - linux.git/commit
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, 31 May 2018 18:31:47 +0000 (11:31 -0700)
commitd618477473ebd9abc26580a762f460860e541f57
tree7040bc5f4e70fc6f60d8315a6e089a4adc98ca18
parentb169c3c560e2b133860f0496d0872699c9b48d54
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