]> git.baikalelectronics.ru Git - kernel.git/commit
blk-throttle: respect 0 bps/iops settings for io.low
authorShaohua Li <shli@fb.com>
Wed, 17 May 2017 20:07:26 +0000 (13:07 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 22 May 2017 20:47:12 +0000 (14:47 -0600)
commit2db3596f69d9e9d3df03c69d632926e439568baa
treee2146e228a7a161b463429ff1f4723c985db19ce
parentf1c90eb472f7bad6510ae45c44bf112e310e57ea
blk-throttle: respect 0 bps/iops settings for io.low

If a cgroup with low limit 0 for both bps/iops, the cgroup's low limit
is ignored and we throttle the cgroup with its max limit. In this way,
other cgroups with a low limit will not get protected. To fix this, we
don't do the exception any more. cgroup will be throttled to a limit 0
if it uese default setting. To avoid completed stall, we give such
cgroup tiny IO resources.

Signed-off-by: Shaohua Li <shli@fb.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-throttle.c