mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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>
This commit is contained in:
parent
99bbf484c6
commit
6343e3efdc
1 changed files with 1 additions and 1 deletions
|
@ -659,7 +659,7 @@ static int virtscsi_abort(struct scsi_cmnd *sc)
|
||||||
static int virtscsi_map_queues(struct Scsi_Host *shost)
|
static int virtscsi_map_queues(struct Scsi_Host *shost)
|
||||||
{
|
{
|
||||||
struct virtio_scsi *vscsi = shost_priv(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);
|
return blk_mq_virtio_map_queues(qmap, vscsi->vdev, 2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue