summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/virtio_scsi.c
diff options
context:
space:
mode:
authorDongli Zhang <dongli.zhang@oracle.com>2019-03-12 02:00:29 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-03-19 20:29:10 +0100
commit6343e3efdc98b84fda3ebb526c379b7ea34a9ad2 (patch)
tree31055d3c6d192eef5926b2e80fa11da5eae1bb00 /drivers/scsi/virtio_scsi.c
parentscsi: core: Use HCTX_TYPE_DEFAULT for blk_mq_tag_set->map (diff)
downloadlinux-6343e3efdc98b84fda3ebb526c379b7ea34a9ad2.tar.xz
linux-6343e3efdc98b84fda3ebb526c379b7ea34a9ad2.zip
scsi: virtio_scsi: Use HCTX_TYPE_DEFAULT for blk_mq_tag_set->map
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>
Diffstat (limited to 'drivers/scsi/virtio_scsi.c')
-rw-r--r--drivers/scsi/virtio_scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c
index 8af01777d09c..c7f13d759c99 100644
--- a/drivers/scsi/virtio_scsi.c
+++ b/drivers/scsi/virtio_scsi.c
@@ -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);
}