diff options
author | Tejun Heo <tj@kernel.org> | 2012-04-13 16:11:29 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-04-20 04:06:06 -0400 |
commit | da8b066262e12d1d0a3b1e6d3486e500169bf730 (patch) | |
tree | 048eee7101b526017bbd295366bf2e95dd65e5a7 /block/cfq-iosched.c | |
parent | 8bd435b30ecacb69bbb8b2d3e251f770b807c5b2 (diff) |
blkcg: make blkg_conf_prep() take @pol and return with queue lock held
Add @pol to blkg_conf_prep() and let it return with queue lock held
(to be released by blkg_conf_finish()). Note that @pol isn't used
yet.
This is to prepare for per-queue policy activation and doesn't cause
any visible difference.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 08db2fc70c29..de95f9a2acf8 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -1400,7 +1400,7 @@ static int cfqg_set_weight_device(struct cgroup *cgrp, struct cftype *cft, | |||
1400 | struct cfq_group *cfqg; | 1400 | struct cfq_group *cfqg; |
1401 | int ret; | 1401 | int ret; |
1402 | 1402 | ||
1403 | ret = blkg_conf_prep(blkcg, buf, &ctx); | 1403 | ret = blkg_conf_prep(blkcg, &blkio_policy_cfq, buf, &ctx); |
1404 | if (ret) | 1404 | if (ret) |
1405 | return ret; | 1405 | return ret; |
1406 | 1406 | ||