aboutsummaryrefslogtreecommitdiffstats
path: root/block/cfq-iosched.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r--block/cfq-iosched.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 1f96ad6254f1..650834537606 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -1209,6 +1209,9 @@ static void cfq_destroy_cfqg(struct cfq_data *cfqd, struct cfq_group *cfqg)
1209 1209
1210 hlist_del_init(&cfqg->cfqd_node); 1210 hlist_del_init(&cfqg->cfqd_node);
1211 1211
1212 BUG_ON(cfqd->nr_blkcg_linked_grps <= 0);
1213 cfqd->nr_blkcg_linked_grps--;
1214
1212 /* 1215 /*
1213 * Put the reference taken at the time of creation so that when all 1216 * Put the reference taken at the time of creation so that when all
1214 * queues are gone, group can be destroyed. 1217 * queues are gone, group can be destroyed.