diff options
author | Tejun Heo <tj@kernel.org> | 2015-08-18 14:55:19 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-08-18 15:49:17 -0700 |
commit | c9589f03e490956628ff91a1da133216dc796b63 (patch) | |
tree | 688cec558495fd27078e34d5474992b5c2b6650f /include/linux/blk-cgroup.h | |
parent | 85b6bc9db6d5ab6980b43c38b5cbd11d24414ce4 (diff) | |
download | blackbird-op-linux-c9589f03e490956628ff91a1da133216dc796b63.tar.gz blackbird-op-linux-c9589f03e490956628ff91a1da133216dc796b63.zip |
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>
Diffstat (limited to 'include/linux/blk-cgroup.h')
0 files changed, 0 insertions, 0 deletions