diff options
-rw-r--r-- | block/cfq-iosched.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 86338d5d4d09..dfceb6386bd5 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -157,6 +157,7 @@ enum wl_prio_t { | |||
157 | BE_WORKLOAD = 0, | 157 | BE_WORKLOAD = 0, |
158 | RT_WORKLOAD = 1, | 158 | RT_WORKLOAD = 1, |
159 | IDLE_WORKLOAD = 2, | 159 | IDLE_WORKLOAD = 2, |
160 | CFQ_PRIO_NR, | ||
160 | }; | 161 | }; |
161 | 162 | ||
162 | /* | 163 | /* |
@@ -181,10 +182,19 @@ struct cfq_group { | |||
181 | /* number of cfqq currently on this group */ | 182 | /* number of cfqq currently on this group */ |
182 | int nr_cfqq; | 183 | int nr_cfqq; |
183 | 184 | ||
184 | /* Per group busy queus average. Useful for workload slice calc. */ | ||
185 | unsigned int busy_queues_avg[2]; | ||
186 | /* | 185 | /* |
187 | * rr lists of queues with requests, onle rr for each priority class. | 186 | * Per group busy queus average. Useful for workload slice calc. We |
187 | * create the array for each prio class but at run time it is used | ||
188 | * only for RT and BE class and slot for IDLE class remains unused. | ||
189 | * This is primarily done to avoid confusion and a gcc warning. | ||
190 | */ | ||
191 | unsigned int busy_queues_avg[CFQ_PRIO_NR]; | ||
192 | /* | ||
193 | * rr lists of queues with requests. We maintain service trees for | ||
194 | * RT and BE classes. These trees are subdivided in subclasses | ||
195 | * of SYNC, SYNC_NOIDLE and ASYNC based on workload type. For IDLE | ||
196 | * class there is no subclassification and all the cfq queues go on | ||
197 | * a single tree service_tree_idle. | ||
188 | * Counts are embedded in the cfq_rb_root | 198 | * Counts are embedded in the cfq_rb_root |
189 | */ | 199 | */ |
190 | struct cfq_rb_root service_trees[2][3]; | 200 | struct cfq_rb_root service_trees[2][3]; |