blkcg: make CONFIG_BLK_CGROUP bool
commit32e380aedc3de454c06ce1c254fe3bea35a676e1
authorTejun Heo <tj@kernel.org>
Mon, 5 Mar 2012 21:14:54 +0000 (5 13:14 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:21 +0000 (6 21:27 +0100)
treeae48ced36af22f020451cb05ecca835ff561dc9d
parentb855b04a0b2213dbc1b59cf936056726e7ed97ad
blkcg: make CONFIG_BLK_CGROUP bool

Block cgroup core can be built as module; however, it isn't too useful
as blk-throttle can only be built-in and cfq-iosched is usually the
default built-in scheduler.  Scheduled blkcg cleanup requires calling
into blkcg from block core.  To simplify that, disallow building blkcg
as module by making CONFIG_BLK_CGROUP bool.

If building blkcg core as module really matters, which I doubt, we can
revisit it after blkcg API cleanup.

-v2: Vivek pointed out that IOSCHED_CFQ was incorrectly updated to
     depend on BLK_CGROUP.  Fixed.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/Kconfig.iosched
block/blk-cgroup.c
block/blk-cgroup.h
init/Kconfig