summaryrefslogtreecommitdiffstats
path: root/block/blk-ioprio.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-02-03 16:03:58 +0100
committerJens Axboe <axboe@kernel.dk>2023-02-03 16:20:05 +0100
commit0a0b4f79db2e6e745672aa3852cf5fdf7af14a0f (patch)
tree8203bd55bd2db45d0c1970c871796fcb2865b99a /block/blk-ioprio.c
parentblk-cgroup: pass a gendisk to blkcg_{de,}activate_policy (diff)
downloadlinux-0a0b4f79db2e6e745672aa3852cf5fdf7af14a0f.tar.xz
linux-0a0b4f79db2e6e745672aa3852cf5fdf7af14a0f.zip
blk-cgroup: pass a gendisk to pd_alloc_fn
No need to the request_queue here, pass a gendisk and extract the node ids from that. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Andreas Herrmann <aherrmann@suse.de> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20230203150400.3199230-18-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-ioprio.c')
-rw-r--r--block/blk-ioprio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-ioprio.c b/block/blk-ioprio.c
index 8194826cc824..055529b9b92b 100644
--- a/block/blk-ioprio.c
+++ b/block/blk-ioprio.c
@@ -116,7 +116,7 @@ static ssize_t ioprio_set_prio_policy(struct kernfs_open_file *of, char *buf,
}
static struct blkg_policy_data *
-ioprio_alloc_pd(gfp_t gfp, struct request_queue *q, struct blkcg *blkcg)
+ioprio_alloc_pd(struct gendisk *disk, struct blkcg *blkcg, gfp_t gfp)
{
struct ioprio_blkg *ioprio_blkg;