cfq: don't register propio policy if !CONFIG_CFQ_GROUP_IOSCHED
commitb95ada558c9e69c69ffd6950eb644ee8a3dba18f
authorTejun Heo <tj@kernel.org>
Mon, 5 Mar 2012 21:14:55 +0000 (5 13:14 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:21 +0000 (6 21:27 +0100)
tree565eda3f793d6b89623fba41beb93df03ceef696
parent32e380aedc3de454c06ce1c254fe3bea35a676e1
cfq: don't register propio policy if !CONFIG_CFQ_GROUP_IOSCHED

cfq has been registering zeroed blkio_poilcy_cfq if CFQ_GROUP_IOSCHED
is disabled.  This fortunately doesn't collide with blk-throtl as
BLKIO_POLICY_PROP is zero but is unnecessary and risky.  Just don't
register it if not enabled.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/cfq-iosched.c