blkcg: add request_queue->root_blkg
commit03d8e11142a893ad322285d3c8a08e88b570cda1
authorTejun Heo <tj@kernel.org>
Fri, 13 Apr 2012 20:11:32 +0000 (13 13:11 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Apr 2012 08:06:06 +0000 (20 10:06 +0200)
tree0f6117ffdb0ad9565a165a98a8d4985ced094eb1
parentb82d4b197c782ced82a8b7b76664125d2d3c156c
blkcg: add request_queue->root_blkg

With per-queue policy activation, root blkg creation will be moved to
blkcg core.  Add q->root_blkg in preparation.  For blk-throtl, this
replaces throtl_data->root_tg; however, cfq needs to keep
cfqd->root_group for !CONFIG_CFQ_GROUP_IOSCHED.

This is to prepare for per-queue policy activation and doesn't cause
any functional difference.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c
block/cfq-iosched.c
include/linux/blkdev.h