]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: hurry up to issue discard after io interruption
authorChao Yu <yuchao0@huawei.com>
Tue, 12 Sep 2017 13:35:12 +0000 (21:35 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 12 Sep 2017 17:02:55 +0000 (10:02 -0700)
commitce04513f21b5fbdd9ead8f7b2c7efef02f5f9735
tree304c15717533f9c851288b300c8b72804a6467a2
parent960c0e398165853502d8b11ab31b3daeb3490f95
f2fs: hurry up to issue discard after io interruption

Once we encounter I/O interruption during issuing discards, we will delay
long time before next round, but if system status is I/O idle during the
time, it may loses opportunity to issue discards. So this patch changes
to hurry up to issue discard after io interruption.

Besides, this patch also fixes to issue discards accurately with assigned
rate.

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