diff options
author | Tejun Heo <tj@kernel.org> | 2019-08-29 00:05:51 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-08-29 05:17:01 +0200 |
commit | cf09a8ee19ad1f78b4e18cdde9f2a61133efacf5 (patch) | |
tree | fe93a7359f9de19bb6480a37847e76acfb64887f /block/blk-iolatency.c | |
parent | Merge branch 'md-next' of git://git.kernel.org/pub/scm/linux/kernel/git/song/... (diff) | |
download | linux-cf09a8ee19ad1f78b4e18cdde9f2a61133efacf5.tar.xz linux-cf09a8ee19ad1f78b4e18cdde9f2a61133efacf5.zip |
blkcg: pass @q and @blkcg into blkcg_pol_alloc_pd_fn()
Instead of @node, pass in @q and @blkcg so that the alloc function has
more context. This doesn't cause any behavior change and will be used
by io.weight implementation.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-iolatency.c')
-rw-r--r-- | block/blk-iolatency.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c index 0fff7b56df0e..46fa6449f4bb 100644 --- a/block/blk-iolatency.c +++ b/block/blk-iolatency.c @@ -934,11 +934,13 @@ static size_t iolatency_pd_stat(struct blkg_policy_data *pd, char *buf, } -static struct blkg_policy_data *iolatency_pd_alloc(gfp_t gfp, int node) +static struct blkg_policy_data *iolatency_pd_alloc(gfp_t gfp, + struct request_queue *q, + struct blkcg *blkcg) { struct iolatency_grp *iolat; - iolat = kzalloc_node(sizeof(*iolat), gfp, node); + iolat = kzalloc_node(sizeof(*iolat), gfp, q->node); if (!iolat) return NULL; iolat->stats = __alloc_percpu_gfp(sizeof(struct latency_stat), |