]> 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)
commitb441dbb299e95b0c2d81cca32e6d5a160eca947f
treee2146e228a7a161b463429ff1f4723c985db19ce
parent7609d3238d6b185b8d3a78b9a3a775dc93d0d36e
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