OSDN Git Service

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>
Sat, 13 Jul 2019 01:35:33 +0000 (18:35 -0700)
commit22c8dd2be7016e8bdd95d7c283728e2b1075bfb9
tree0668dee1c22e2ac09c8a9a752b1025a2f7d77afe
parent9b927b83db2097f001072cd955ea8287d0ca4a32
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