aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r--block/blk-cgroup.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
index 2600ae7e6f60..81efe718a1c6 100644
--- a/block/blk-cgroup.h
+++ b/block/blk-cgroup.h
@@ -154,6 +154,12 @@ struct blkio_group_stats_cpu {
154 struct u64_stats_sync syncp; 154 struct u64_stats_sync syncp;
155}; 155};
156 156
157struct blkio_group_conf {
158 unsigned int weight;
159 unsigned int iops[2];
160 u64 bps[2];
161};
162
157struct blkio_group { 163struct blkio_group {
158 /* Pointer to the associated request_queue, RCU protected */ 164 /* Pointer to the associated request_queue, RCU protected */
159 struct request_queue __rcu *q; 165 struct request_queue __rcu *q;
@@ -166,6 +172,9 @@ struct blkio_group {
166 /* policy which owns this blk group */ 172 /* policy which owns this blk group */
167 enum blkio_policy_id plid; 173 enum blkio_policy_id plid;
168 174
175 /* Configuration */
176 struct blkio_group_conf conf;
177
169 /* Need to serialize the stats in the case of reset/update */ 178 /* Need to serialize the stats in the case of reset/update */
170 spinlock_t stats_lock; 179 spinlock_t stats_lock;
171 struct blkio_group_stats stats; 180 struct blkio_group_stats stats;