f2fs: fix to avoid long latency during umount
authorHeng Xiao <heng.xiao@unisoc.com>
Wed, 3 Jul 2019 02:29:57 +0000 (10:29 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 11 Jul 2019 01:13:53 +0000 (18:13 -0700)
commit6e0cd4a9dd4df1a0afcb454f1e654b5c80685913
tree0d4696f802f2f8ad1b69747bd8bfa4149b107c76
parentb13bdf03bb8007279bb0efdf127bafb2d84e8b0a
f2fs: fix to avoid long latency during umount

In umount, we give an constand time to handle pending discard, previously,
in __issue_discard_cmd() we missed to check timeout condition in loop,
result in delaying long time, fix it.

Signed-off-by: Heng Xiao <heng.xiao@unisoc.com>
[Chao Yu: add commit message]
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c