aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-04-13 16:11:26 -0400
committerJens Axboe <axboe@kernel.dk>2012-04-20 04:06:06 -0400
commitbc0d6501a844392ab6ad419d7ca5af4693b6afac (patch)
tree08375aff242a2efd35d830c7636ab61a3ec6a109 /block/blk-cgroup.h
parentf48ec1d7885281a9c6cd7779d61f321d1b1fd741 (diff)
blkcg: kill blkio_list and replace blkio_list_lock with a mutex
With blkio_policy[], blkio_list is redundant and hinders with per-queue policy activation. Remove it. Also, replace blkio_list_lock with a mutex blkcg_pol_mutex and let it protect the whole [un]registration. This is to prepare for per-queue policy activation and doesn't cause any functional difference. 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 'block/blk-cgroup.h')
-rw-r--r--block/blk-cgroup.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
index 64392ac76ce8..c772581c9011 100644
--- a/block/blk-cgroup.h
+++ b/block/blk-cgroup.h
@@ -102,7 +102,6 @@ struct blkio_policy_ops {
102}; 102};
103 103
104struct blkio_policy_type { 104struct blkio_policy_type {
105 struct list_head list;
106 struct blkio_policy_ops ops; 105 struct blkio_policy_ops ops;
107 enum blkio_policy_id plid; 106 enum blkio_policy_id plid;
108 size_t pdata_size; /* policy specific private data size */ 107 size_t pdata_size; /* policy specific private data size */