blk-throttle: add downgrade logic
authorShaohua Li <shli@fb.com>
Mon, 27 Mar 2017 17:51:35 +0000 (10:51 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 28 Mar 2017 14:02:20 +0000 (08:02 -0600)
commit3f0abd806651df546f426f23490fec997dc87e5b
treecdeaf44febd169b439d6543fa0285bf32d170513
parentc79892c5576163b3c7403b9d75cbe8dcae65e428
blk-throttle: add downgrade logic

When queue state machine is in LIMIT_MAX state, but a cgroup is below
its low limit for some time, the queue should be downgraded to lower
state as one cgroup's low limit isn't met.

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-throttle.c