]> git.baikalelectronics.ru Git - kernel.git/commit
blk-throttle: improve queue bypass handling
authorTejun Heo <tj@kernel.org>
Tue, 18 Aug 2015 21:55:19 +0000 (14:55 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 18 Aug 2015 22:49:17 +0000 (15:49 -0700)
commit227af7a013c8f96fc500b3f37b1cc16c28bbd5d2
tree688cec558495fd27078e34d5474992b5c2b6650f
parent41c258b9480042df607708c9f0131757f72c5e06
blk-throttle: improve queue bypass handling

If a queue is bypassing, all blkcg policies should become noops but
blk-throttle wasn't.  It only became noop if the queue was dying.
While this wouldn't lead to an oops as falling back to the root blkg
is safe in this case, this can be a bit surprising - a bypassing queue
could still be applying throttle limits.

Fix it by removing blk_queue_dying() test in throtl_lookup_create_tg()
and testing blk_queue_bypass() in blk_throtl_bio() and bypassing
before doing anything else.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Arianna Avanzini <avanzini.arianna@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-throttle.c