blk-wbt: throttle discards like background writes wbt-discard
authorJens Axboe <axboe@kernel.dk>
Mon, 7 May 2018 16:03:23 +0000 (10:03 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 May 2018 19:18:27 +0000 (13:18 -0600)
commit0ce3fdc9b748bbef46c318e719017df0d6b21642
tree14d289ee2d84d07310eb3d72dea82f3018bbe877
parent5f3216fbee9dd3166fd3a2651350afe8d986aaf5
blk-wbt: throttle discards like background writes

Throttle discards like we would any background write. Discards should
be background activity, so if they are impacting foreground IO, then
we will throttle them down.

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-stat.h
block/blk-wbt.c
block/blk-wbt.h