]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d43df058305ecc4c801c31aa0d66d6df8a0aa3a
tree137bb8ebd2903af1d82fb9159ccc5a06b9005335
parentdd7a84624be80c81f2564b6d7d4d939634f5ce2c
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