f2fs: reduce cmd_lock coverage in __issue_discard_cmd
authorChao Yu <yuchao0@huawei.com>
Wed, 4 Oct 2017 01:08:35 +0000 (09:08 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 01:21:54 +0000 (17:21 -0800)
commitc72699d2320dad9c8fd1ae430f366f7ffa43c7d8
treef2490b3637be4d7b77944e483039d9501fb245dd
parent0eeceeb20671c07817afad6022da17e613481950
f2fs: reduce cmd_lock coverage in __issue_discard_cmd

__submit_discard_cmd may lead long latency due to exhaustion of I/O
request resource in block layer, so issuing all discard under cmd_lock
may lead to hangtask, in order to avoid that, let's reduce it's coverage.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c