]> git.baikalelectronics.ru Git - kernel.git/commit
cfq-iosched: move cfq_group determination from cfq_find_alloc_queue() to cfq_get_queue()
authorTejun Heo <tj@kernel.org>
Tue, 18 Aug 2015 21:55:03 +0000 (14:55 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 18 Aug 2015 22:49:16 +0000 (15:49 -0700)
commit63f4f126f1949b7c817dc1159832cf7917cc49d8
tree536ae950d92b337f3896cb37acc8d3bf5c05ac14
parent1ec1361ef3c3b7519a104d39178be320688b604a
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 <tj@kernel.org>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Arianna Avanzini <avanzini.arianna@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/cfq-iosched.c