Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359504
b: refs/heads/master
c: b276a87
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo committed Jan 9, 2013
1 parent a52298c commit de22720
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d02f7aa8dce8166dbbc515ce393912aa45e6b8a6
refs/heads/master: b276a876a014c5fa58a16f247c0933f6c42112e3
2 changes: 2 additions & 0 deletions trunk/block/blk-cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ static struct blkcg_gq *blkg_alloc(struct blkcg *blkcg, struct request_queue *q,

blkg->pd[i] = pd;
pd->blkg = blkg;
pd->plid = i;

/* invoke per-policy init */
if (pol->pd_init_fn)
Expand Down Expand Up @@ -908,6 +909,7 @@ int blkcg_activate_policy(struct request_queue *q,

blkg->pd[pol->plid] = pd;
pd->blkg = blkg;
pd->plid = pol->plid;
pol->pd_init_fn(blkg);

spin_unlock(&blkg->blkcg->lock);
Expand Down
3 changes: 2 additions & 1 deletion trunk/block/blk-cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ struct blkg_rwstat {
* beginning and pd_size can't be smaller than pd.
*/
struct blkg_policy_data {
/* the blkg this per-policy data belongs to */
/* the blkg and policy id this per-policy data belongs to */
struct blkcg_gq *blkg;
int plid;

/* used during policy activation */
struct list_head alloc_node;
Expand Down

0 comments on commit de22720

Please sign in to comment.