From: Jun'ichi Nomura Date: Mon, 22 Oct 2012 01:15:37 +0000 (+0900) Subject: blkcg: stop iteration early if root_rl is the only request list X-Git-Tag: v3.7-rc4~23^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65c77fd9e8a1c8c3da0bbbea6b7efa3d6ef265f8;p=pandora-kernel.git 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 Cc: Tejun Heo Acked-by: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed