blk-wbt: throttle discards like background writes
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 21:11:02 +0000 (15:11 -0600)
commit782f569774d7000e54ae9d680b0e4cd29b1c7ca3
tree137bb8ebd2903af1d82fb9159ccc5a06b9005335
parent8bea60901974ad44b06b08d52e1dd421ea8c6e9c
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>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-stat.h
block/blk-wbt.c
block/blk-wbt.h