aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-cgroup.c')
-rw-r--r--block/blk-cgroup.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
index 86e7066a0b62..b06ca70354e3 100644
--- a/block/blk-cgroup.c
+++ b/block/blk-cgroup.c
@@ -1411,13 +1411,14 @@ static void blkiocg_destroy(struct cgroup_subsys *subsys, struct cgroup *cgroup)
1411 /* 1411 /*
1412 * This blkio_group is being unlinked as associated cgroup is 1412 * This blkio_group is being unlinked as associated cgroup is
1413 * going away. Let all the IO controlling policies know about 1413 * going away. Let all the IO controlling policies know about
1414 * this event. Currently this is static call to one io 1414 * this event.
1415 * controlling policy. Once we have more policies in place, we
1416 * need some dynamic registration of callback function.
1417 */ 1415 */
1418 spin_lock(&blkio_list_lock); 1416 spin_lock(&blkio_list_lock);
1419 list_for_each_entry(blkiop, &blkio_list, list) 1417 list_for_each_entry(blkiop, &blkio_list, list) {
1418 if (blkiop->plid != blkg->plid)
1419 continue;
1420 blkiop->ops.blkio_unlink_group_fn(key, blkg); 1420 blkiop->ops.blkio_unlink_group_fn(key, blkg);
1421 }
1421 spin_unlock(&blkio_list_lock); 1422 spin_unlock(&blkio_list_lock);
1422 } while (1); 1423 } while (1);
1423 1424