|
@@ -3878,8 +3878,6 @@ static struct blkio_policy_type blkio_policy_cfq = {
|
|
},
|
|
},
|
|
.plid = BLKIO_POLICY_PROP,
|
|
.plid = BLKIO_POLICY_PROP,
|
|
};
|
|
};
|
|
-#else
|
|
|
|
-static struct blkio_policy_type blkio_policy_cfq;
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
static int __init cfq_init(void)
|
|
static int __init cfq_init(void)
|
|
@@ -3910,14 +3908,17 @@ static int __init cfq_init(void)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifdef CONFIG_CFQ_GROUP_IOSCHED
|
|
blkio_policy_register(&blkio_policy_cfq);
|
|
blkio_policy_register(&blkio_policy_cfq);
|
|
-
|
|
|
|
|
|
+#endif
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
static void __exit cfq_exit(void)
|
|
static void __exit cfq_exit(void)
|
|
{
|
|
{
|
|
|
|
+#ifdef CONFIG_CFQ_GROUP_IOSCHED
|
|
blkio_policy_unregister(&blkio_policy_cfq);
|
|
blkio_policy_unregister(&blkio_policy_cfq);
|
|
|
|
+#endif
|
|
elv_unregister(&iosched_cfq);
|
|
elv_unregister(&iosched_cfq);
|
|
kmem_cache_destroy(cfq_pool);
|
|
kmem_cache_destroy(cfq_pool);
|
|
}
|
|
}
|