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/blk-cgroup.h | |
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/blk-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index be80d6eb6531..df1c7b290c22 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h | |||
@@ -128,7 +128,8 @@ struct blkg_conf_ctx { | |||
128 | u64 v; | 128 | u64 v; |
129 | }; | 129 | }; |
130 | 130 | ||
131 | int blkg_conf_prep(struct blkio_cgroup *blkcg, const char *input, | 131 | int blkg_conf_prep(struct blkio_cgroup *blkcg, |
132 | const struct blkio_policy_type *pol, const char *input, | ||
132 | struct blkg_conf_ctx *ctx); | 133 | struct blkg_conf_ctx *ctx); |
133 | void blkg_conf_finish(struct blkg_conf_ctx *ctx); | 134 | void blkg_conf_finish(struct blkg_conf_ctx *ctx); |
134 | 135 | ||