From: Tejun Heo Date: Tue, 18 Aug 2015 21:55:03 +0000 (-0700) Subject: cfq-iosched: move cfq_group determination from cfq_find_alloc_queue() to cfq_get_queue() X-Git-Tag: omap-for-v4.3/fixes-rc1~35^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=322731ed0dd2d8a7f11307e0444257f48580a0de;p=pandora-kernel.git cfq-iosched: move cfq_group determination from cfq_find_alloc_queue() to cfq_get_queue() This is necessary for making async cfq_cgroups per-cfq_group instead of per-cfq_data. While this change makes cfq_get_queue() perform RCU locking and look up cfq_group even when it reuses async queue, the extra overhead is extremely unlikely to be noticeable given that this is already sitting behind cic->cfqq[] cache and the overall cost of cfq operation. Signed-off-by: Tejun Heo Reviewed-by: Jeff Moyer Cc: Vivek Goyal Cc: Arianna Avanzini Signed-off-by: Jens Axboe --- Reading git-diff-tree failed