diff options
author | Christoph Hellwig <hch@lst.de> | 2023-02-03 16:03:56 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-02-03 16:20:05 +0100 |
commit | ba91c849fa50dbc6519cf7808177b3a9b7f6bc97 (patch) | |
tree | b0363e99e6d55732662655f43600f5e4cf78cc7f /block/blk-rq-qos.c | |
parent | blk-rq-qos: constify rq_qos_ops (diff) | |
download | linux-ba91c849fa50dbc6519cf7808177b3a9b7f6bc97.tar.xz linux-ba91c849fa50dbc6519cf7808177b3a9b7f6bc97.zip |
blk-rq-qos: store a gendisk instead of request_queue in struct rq_qos
This is what about half of the users already want, and it's only going to
grow more.
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-16-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-rq-qos.c')
-rw-r--r-- | block/blk-rq-qos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-rq-qos.c b/block/blk-rq-qos.c index 8e83734cfe8d..d8cc820a365e 100644 --- a/block/blk-rq-qos.c +++ b/block/blk-rq-qos.c @@ -300,7 +300,7 @@ int rq_qos_add(struct rq_qos *rqos, struct gendisk *disk, enum rq_qos_id id, { struct request_queue *q = disk->queue; - rqos->q = q; + rqos->disk = disk; rqos->id = id; rqos->ops = ops; @@ -337,7 +337,7 @@ ebusy: void rq_qos_del(struct rq_qos *rqos) { - struct request_queue *q = rqos->q; + struct request_queue *q = rqos->disk->queue; struct rq_qos **cur; /* |