]> 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)
commitadaa02cd5829fd692788d39995455dfb1dbc15ef
tree137bb8ebd2903af1d82fb9159ccc5a06b9005335
parent48e5a583275ded7516f5be3f6ddd1104d898cb3b
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