]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: stop iteration early if root_rl is the only request list
authorJun'ichi Nomura <j-nomura@ce.jp.nec.com>
Mon, 22 Oct 2012 01:15:37 +0000 (10:15 +0900)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Oct 2012 20:00:26 +0000 (22:00 +0200)
commit51592ace74ddc23e2bc8eb6ef7def1b207f3c000
tree305b08304869b3f8d57a191b4b23968e53b53247
parent6c0c6ca48744094124c0c6d117792e5ecbae9d03
blkcg: stop iteration early if root_rl is the only request list

__blk_queue_next_rl() finds next request list based on blkg_list
while skipping root_blkg in the list.
OTOH, root_rl is special as it may exist even without root_blkg.

Though the later part of the function handles such a case correctly,
exiting early is good for readability of the code.

Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Cc: Tejun Heo <tj@kernel.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c