[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1552352431-18821-5-git-send-email-dongli.zhang@oracle.com>
Date: Tue, 12 Mar 2019 09:00:31 +0800
From: Dongli Zhang <dongli.zhang@...cle.com>
To: linux-scsi@...r.kernel.org, qla2xxx-upstream@...gic.com,
linux-kernel@...r.kernel.org
Cc: jejb@...ux.ibm.com, martin.petersen@...cle.com,
don.brace@...rosemi.com, esc.storagedev@...rosemi.com,
dongli.zhang@...cle.com
Subject: [PATCH 4/4] scsi: smartpqi: replace 0 by HCTX_TYPE_DEFAULT to index blk_mq_tag_set->map
Use HCTX_TYPE_DEFAULT instead of 0 to avoid hardcoding.
Signed-off-by: Dongli Zhang <dongli.zhang@...cle.com>
---
drivers/scsi/smartpqi/smartpqi_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c
index 5d9ccba..68aea2a 100644
--- a/drivers/scsi/smartpqi/smartpqi_init.c
+++ b/drivers/scsi/smartpqi/smartpqi_init.c
@@ -5789,7 +5789,7 @@ static int pqi_map_queues(struct Scsi_Host *shost)
{
struct pqi_ctrl_info *ctrl_info = shost_to_hba(shost);
- return blk_mq_pci_map_queues(&shost->tag_set.map[0],
+ return blk_mq_pci_map_queues(&shost->tag_set.map[HCTX_TYPE_DEFAULT],
ctrl_info->pci_dev, 0);
}
--
2.7.4
Powered by blists - more mailing lists