blk-rq-qos: make rq_qos_add and rq_qos_del more useful
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Feb 2023 15:03:54 +0000 (16:03 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Feb 2023 15:20:05 +0000 (08:20 -0700)
commitce57b558604e68277d31ca5ce49ec4579a8618c5
tree7660aacf0aa4ba3c61bce399935977954622b4d3
parentb494f9c566ba5fe2cc8abe67fdeb0332c6b48d4b
blk-rq-qos: make rq_qos_add and rq_qos_del more useful

Switch to passing a gendisk, and make rq_qos_add initialize all required
fields and drop the not required q argument from rq_qos_del.

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-14-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iocost.c
block/blk-iolatency.c
block/blk-rq-qos.c
block/blk-rq-qos.h
block/blk-wbt.c