* [PATCH] scsi: pm8001: do not overwrite PCI queue mapping
@ 2024-09-12 8:58 Daniel Wagner
2024-09-13 0:52 ` Martin K. Petersen
2024-09-19 15:52 ` Martin K. Petersen
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Wagner @ 2024-09-12 8:58 UTC (permalink / raw)
To: Martin K. Petersen, John Garry
Cc: linux-scsi, linux-kernel, Christoph Hellwig, Daniel Wagner
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: 42f22fe36d51 ("scsi: pm8001: Expose hardware queues for pm80xx")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
---
I've factored this fix out from the 'honor isolcpus configuration' [1]
series. No need to hold the fix off.
[1] https://lore.kernel.org/all/20240806-isolcpus-io-queues-v3-0-da0eecfeaf8b@suse.de
---
drivers/scsi/pm8001/pm8001_init.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c
index 1e63cb6cd8e3..33e1eba62ca1 100644
--- a/drivers/scsi/pm8001/pm8001_init.c
+++ b/drivers/scsi/pm8001/pm8001_init.c
@@ -100,10 +100,12 @@ static void pm8001_map_queues(struct Scsi_Host *shost)
struct pm8001_hba_info *pm8001_ha = sha->lldd_ha;
struct blk_mq_queue_map *qmap = &shost->tag_set.map[HCTX_TYPE_DEFAULT];
- if (pm8001_ha->number_of_intr > 1)
+ if (pm8001_ha->number_of_intr > 1) {
blk_mq_pci_map_queues(qmap, pm8001_ha->pdev, 1);
+ return;
+ }
- return blk_mq_map_queues(qmap);
+ blk_mq_map_queues(qmap);
}
/*
---
base-commit: 70302fc7adcd29c4c744489cd89e2d3ed08ecd8d
change-id: 20240912-do-not-overwrite-pci-mapping-91d17118323e
Best regards,
--
Daniel Wagner <dwagner@suse.de>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: pm8001: do not overwrite PCI queue mapping
2024-09-12 8:58 [PATCH] scsi: pm8001: do not overwrite PCI queue mapping Daniel Wagner
@ 2024-09-13 0:52 ` Martin K. Petersen
2024-09-19 15:52 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2024-09-13 0:52 UTC (permalink / raw)
To: Daniel Wagner
Cc: Martin K. Petersen, John Garry, linux-scsi, linux-kernel,
Christoph Hellwig
Daniel,
> 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.
Applied to 6.12/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: pm8001: do not overwrite PCI queue mapping
2024-09-12 8:58 [PATCH] scsi: pm8001: do not overwrite PCI queue mapping Daniel Wagner
2024-09-13 0:52 ` Martin K. Petersen
@ 2024-09-19 15:52 ` Martin K. Petersen
1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2024-09-19 15:52 UTC (permalink / raw)
To: John Garry, Daniel Wagner
Cc: Martin K . Petersen, linux-scsi, linux-kernel, Christoph Hellwig
On Thu, 12 Sep 2024 10:58:28 +0200, Daniel Wagner wrote:
> 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.
>
>
Applied to 6.12/scsi-queue, thanks!
[1/1] scsi: pm8001: do not overwrite PCI queue mapping
https://git.kernel.org/mkp/scsi/c/a141c17a5433
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-19 15:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-12 8:58 [PATCH] scsi: pm8001: do not overwrite PCI queue mapping Daniel Wagner
2024-09-13 0:52 ` Martin K. Petersen
2024-09-19 15:52 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox