Message ID | 20241115-refactor-blk-affinity-helpers-v5-7-c472afd84d9f@kernel.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | blk: refactor queue affinity helpers | expand |
On Fri, Nov 15, 2024 at 05:37:51PM +0100, Daniel Wagner wrote: > Replace all users of blk_mq_virtio_map_queues with the more generic > blk_mq_map_hw_queues. This in preparation to retire > blk_mq_virtio_map_queues. > > Reviewed-by: Christoph Hellwig <hch@lst.de> > Reviewed-by: Hannes Reinecke <hare@suse.de> > Signed-off-by: Daniel Wagner <wagi@kernel.org> Reviewed-by: Ming Lei <ming.lei@redhat.com>
On 15/11/2024 16:37, Daniel Wagner wrote: > Replace all users of blk_mq_virtio_map_queues with the more generic > blk_mq_map_hw_queues. This in preparation to retire > blk_mq_virtio_map_queues. > > Reviewed-by: Christoph Hellwig<hch@lst.de> > Reviewed-by: Hannes Reinecke<hare@suse.de> > Signed-off-by: Daniel Wagner<wagi@kernel.org> Reviewed-by: John Garry <john.g.garry@oracle.com>
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 0e99a4714928478c1ba81777b8e98448eb5b992a..c4a8ad396cce2d5a7b9e8d2ac53c191b8f6709de 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c @@ -13,7 +13,6 @@ #include <linux/string_helpers.h> #include <linux/idr.h> #include <linux/blk-mq.h> -#include <linux/blk-mq-virtio.h> #include <linux/numa.h> #include <linux/vmalloc.h> #include <uapi/linux/virtio_ring.h> @@ -1186,7 +1185,8 @@ static void virtblk_map_queues(struct blk_mq_tag_set *set) if (i == HCTX_TYPE_POLL) blk_mq_map_queues(&set->map[i]); else - blk_mq_virtio_map_queues(&set->map[i], vblk->vdev, 0); + blk_mq_map_hw_queues(&set->map[i], + &vblk->vdev->dev, 0); } } diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index 8471f38b730e205eb57052305c154260864bee95..60be1a0c61836ba643adcf9ad8d5b68563a86cb1 100644 --- a/drivers/scsi/virtio_scsi.c +++ b/drivers/scsi/virtio_scsi.c @@ -29,7 +29,6 @@ #include <scsi/scsi_tcq.h> #include <scsi/scsi_devinfo.h> #include <linux/seqlock.h> -#include <linux/blk-mq-virtio.h> #include "sd.h" @@ -746,7 +745,7 @@ static void virtscsi_map_queues(struct Scsi_Host *shost) if (i == HCTX_TYPE_POLL) blk_mq_map_queues(map); else - blk_mq_virtio_map_queues(map, vscsi->vdev, 2); + blk_mq_map_hw_queues(map, &vscsi->vdev->dev, 2); } }