]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
scsi: virtio_scsi: Use HCTX_TYPE_DEFAULT for blk_mq_tag_set->map
authorDongli Zhang <dongli.zhang@oracle.com>
Tue, 12 Mar 2019 01:00:29 +0000 (09:00 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 19:29:10 +0000 (15:29 -0400)
Use HCTX_TYPE_DEFAULT instead of 0 to avoid hardcoding.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/virtio_scsi.c

index 8af01777d09c74f344ad325256dbd30248febe32..c7f13d759c99618ba76b33c77b7f0832aa64fed9 100644 (file)
@@ -659,7 +659,7 @@ static int virtscsi_abort(struct scsi_cmnd *sc)
 static int virtscsi_map_queues(struct Scsi_Host *shost)
 {
        struct virtio_scsi *vscsi = shost_priv(shost);
-       struct blk_mq_queue_map *qmap = &shost->tag_set.map[0];
+       struct blk_mq_queue_map *qmap = &shost->tag_set.map[HCTX_TYPE_DEFAULT];
 
        return blk_mq_virtio_map_queues(qmap, vscsi->vdev, 2);
 }