From 4746ef2c771cb3348b354159e5cc7727dff3eaa0 Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Mon, 4 Jun 2012 15:21:00 +0900 Subject: [PATCH] --- yaml --- r: 311585 b: refs/heads/master c: 9b2ea86bc9e940950a088e9795ab28f006e73276 h: refs/heads/master i: 311583: caca8ee9cd361308b06da0bd18c64ef6f51ff83f v: v3 --- [refs] | 2 +- trunk/block/blk-cgroup.c | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 475a0d0c73b7..ba1c79dc237f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ffea73fc723a12fdde4c9fb3fcce5d154d1104a1 +refs/heads/master: 9b2ea86bc9e940950a088e9795ab28f006e73276 diff --git a/trunk/block/blk-cgroup.c b/trunk/block/blk-cgroup.c index 02cf6335e9bd..4ab7420ba465 100644 --- a/trunk/block/blk-cgroup.c +++ b/trunk/block/blk-cgroup.c @@ -125,12 +125,8 @@ static struct blkcg_gq *blkg_alloc(struct blkcg *blkcg, struct request_queue *q) blkg->pd[i] = pd; pd->blkg = blkg; - } - - /* invoke per-policy init */ - for (i = 0; i < BLKCG_MAX_POLS; i++) { - struct blkcg_policy *pol = blkcg_policy[i]; + /* invoke per-policy init */ if (blkcg_policy_enabled(blkg->q, pol)) pol->pd_init_fn(blkg); }