Skip to content

Commit a141c17

Browse files
igawmartinkpetersen
authored andcommitted
scsi: pm8001: Do not overwrite PCI queue mapping
blk_mq_pci_map_queues() maps all queues but right after this, we overwrite these mappings by calling blk_mq_map_queues(). Just use one helper but not both. Fixes: 42f22fe ("scsi: pm8001: Expose hardware queues for pm80xx") Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: John Garry <[email protected]> Signed-off-by: Daniel Wagner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent bba20b8 commit a141c17

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/scsi/pm8001/pm8001_init.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,12 @@ static void pm8001_map_queues(struct Scsi_Host *shost)
100100
struct pm8001_hba_info *pm8001_ha = sha->lldd_ha;
101101
struct blk_mq_queue_map *qmap = &shost->tag_set.map[HCTX_TYPE_DEFAULT];
102102

103-
if (pm8001_ha->number_of_intr > 1)
103+
if (pm8001_ha->number_of_intr > 1) {
104104
blk_mq_pci_map_queues(qmap, pm8001_ha->pdev, 1);
105+
return;
106+
}
105107

106-
return blk_mq_map_queues(qmap);
108+
blk_mq_map_queues(qmap);
107109
}
108110

109111
/*

0 commit comments

Comments
 (0)