aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo2012-03-05 15:15:13 -0600
committerJens Axboe2012-03-06 14:27:23 -0600
commit923adde1be1df57cebd80c563058e503376645e8 (patch)
tree7009edf644abdf6b91daaab3967ffa6a8b30633a /include/linux/blkdev.h
parent5efd611351d1a847c72d74fb12ff4bd187c0cb2c (diff)
downloadkernel-common-923adde1be1df57cebd80c563058e503376645e8.tar.gz
kernel-common-923adde1be1df57cebd80c563058e503376645e8.tar.xz
kernel-common-923adde1be1df57cebd80c563058e503376645e8.zip
blkcg: clear all request_queues on blkcg policy [un]registrations
Keep track of all request_queues which have blkcg initialized and turn on bypass and invoke blkcg_clear_queue() on all before making changes to blkcg policies. This is to prepare for moving blkg management into blkcg core. Note that this uses more brute force than necessary. Finer grained shoot down will be implemented later and given that policy [un]registration almost never happens on running systems (blk-throtl can't be built as a module and cfq usually is the builtin default iosched), this shouldn't be a problem for the time being. 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/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 315db1d91bc..e8c0bbd06b9 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -397,6 +397,9 @@ struct request_queue {
397 struct bsg_class_device bsg_dev; 397 struct bsg_class_device bsg_dev;
398#endif 398#endif
399 399
400#ifdef CONFIG_BLK_CGROUP
401 struct list_head all_q_node;
402#endif
400#ifdef CONFIG_BLK_DEV_THROTTLING 403#ifdef CONFIG_BLK_DEV_THROTTLING
401 /* Throttle data */ 404 /* Throttle data */
402 struct throtl_data *td; 405 struct throtl_data *td;