blkcg: move root blkg lookup optimization from throtl_lookup_tg() to __blkg_lookup()
authorTejun Heo <tj@kernel.org>
Tue, 18 Aug 2015 21:55:18 +0000 (14:55 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 18 Aug 2015 22:49:17 +0000 (15:49 -0700)
commit85b6bc9db6d5ab6980b43c38b5cbd11d24414ce4
tree7389d8656738b72cc7c8c7569247db31800d9246
parent24f290466f79a6497f1654f64b9a841872cba3ca
blkcg: move root blkg lookup optimization from throtl_lookup_tg() to __blkg_lookup()

Currently, both throttle and cfq policies implement their own root
blkg (blkcg_gq) lookup fast path.  This patch moves root blkg
optimization from throtl_lookup_tg() to __blkg_lookup().  cfq-iosched
currently doesn't use blkg_lookup() but will be converted and drop the
optimization too.

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>
block/blk-throttle.c
include/linux/blk-cgroup.h