OSDN Git Service

f2fs: stop issuing discard immediately if there is queued IO
authorChao Yu <yuchao0@huawei.com>
Sun, 8 Jul 2018 14:08:09 +0000 (22:08 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 1 Aug 2018 18:52:36 +0000 (11:52 -0700)
commit522d1711d62c4fb87d7468ea1ef76ef5c510fd6e
treee7781f7e83f47896e52b1426de673f333aedeb75
parent4c6b56c002caf0b3a9aaaeb493c59d53daeaff40
f2fs: stop issuing discard immediately if there is queued IO

For background discard policy, even if there is queued user IO, still
we will check max_requests times for next discard entry, it is unneeded,
let's just stop this round submission immediately.

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