This patch creates a cfq optional operations framework.
This framework defines specific functions for expanding CFQ.
Signed-off-by: Satoshi UCHIDA <uchida@ap.jp.nec.com>
---
block/cfq-cgroup.c | 4 ++++
block/cfq-iosched.c | 5 +++++
include/linux/cfq-iosched.h | 6 ++++++
3 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/block/cfq-cgroup.c b/block/cfq-cgroup.c
index 378a23d..bcb55c8 100644
--- a/block/cfq-cgroup.c
+++ b/block/cfq-cgroup.c
@@ -151,3 +151,7 @@ struct cgroup_subsys cfq_subsys = {
.subsys_id = cfq_subsys_id,
.populate = cfq_cgroup_populate,
};
+
+
+struct cfq_ops opt = {
+};
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index aaf5d7e..245c252 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -2233,6 +2233,11 @@ static void __exit cfq_exit(void)
module_init(cfq_init);
module_exit(cfq_exit);
+#ifndef CONFIG_CGROUP_CFQ
+struct cfq_ops opt = {
+};
+#endif
+
MODULE_AUTHOR("Jens Axboe");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Completely Fair Queueing IO scheduler");
diff --git a/include/linux/cfq-iosched.h b/include/linux/cfq-iosched.h
index 035bfc4..9287da1 100644
--- a/include/linux/cfq-iosched.h
+++ b/include/linux/cfq-iosched.h
@@ -87,4 +87,10 @@ static inline struct request_queue * __cfq_container_of_queue(struct work_struct
return cfqd->cfq_driv_d.queue;
};
+struct cfq_ops
+{
+};
+
+extern struct cfq_ops opt;
+
#endif /* _LINUX_CFQ_IOSCHED_H */
--
1.5.4.1
--
| Joe Perches | [PATCH 011/148] include/asm-x86/bug.h: checkpatch cleanups - formatting only |
| Arjan van de Ven | [patch] Add basic sanity checks to the syscall execution patch |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Greg Kroah-Hartman | [PATCH 006/196] Chinese: add translation of oops-tracing.txt |
git: | |
| Aaron Bentley | Re: VCS comparison table |
| Kevin Ballard | Re: git on MacOSX and files with decomposed utf-8 file names |
| Dmitry Potapov | Re: I'm a total push-over.. |
| Junio C Hamano | Re: Implementing branch attributes in git config |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| rancor | How to copy/pipe console buffert to file? |
| Richard Stallman | Re: Real men don't attack straw men |
| Felix Radensky | RE: e1000e "Detected Tx Unit Hang" |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
| Jay Vosburgh | [PATCH 0/9]: bonding support for IPoIB |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
