diff options
| author | Tejun Heo <tj@kernel.org> | 2012-04-13 16:11:32 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2012-04-20 04:06:06 -0400 |
| commit | 03d8e11142a893ad322285d3c8a08e88b570cda1 (patch) | |
| tree | 0f6117ffdb0ad9565a165a98a8d4985ced094eb1 /include | |
| parent | b82d4b197c782ced82a8b7b76664125d2d3c156c (diff) | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index d2c69f8c188..b01c377fd73 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -31,6 +31,7 @@ struct blk_trace; | |||
| 31 | struct request; | 31 | struct request; |
| 32 | struct sg_io_hdr; | 32 | struct sg_io_hdr; |
| 33 | struct bsg_job; | 33 | struct bsg_job; |
| 34 | struct blkio_group; | ||
| 34 | 35 | ||
| 35 | #define BLKDEV_MIN_RQ 4 | 36 | #define BLKDEV_MIN_RQ 4 |
| 36 | #define BLKDEV_MAX_RQ 128 /* Default maximum */ | 37 | #define BLKDEV_MAX_RQ 128 /* Default maximum */ |
| @@ -369,6 +370,7 @@ struct request_queue { | |||
| 369 | 370 | ||
| 370 | struct list_head icq_list; | 371 | struct list_head icq_list; |
| 371 | #ifdef CONFIG_BLK_CGROUP | 372 | #ifdef CONFIG_BLK_CGROUP |
| 373 | struct blkio_group *root_blkg; | ||
| 372 | struct list_head blkg_list; | 374 | struct list_head blkg_list; |
| 373 | #endif | 375 | #endif |
| 374 | 376 | ||
