linux/drivers/scsi/hisi_sas
John Garry fab09aaee8 scsi: hisi_sas: Stop using queue always for v2 hw
In commit 8d98416a55 ("scsi: hisi_sas: Switch v3 hw to MQ"), the dispatch
function was changed to choose the delivery queue based on the request tag
HW queue index.

This heavily degrades performance for v2 hw, since the HW queues are not
exposed there, and, as such, HW queue  is used for every command.

Revert to previous behaviour for when nr_hw_queues is not set, that being
to choose the HW queue based on target device index.

Link: https://lore.kernel.org/r/1602750425-240341-1-git-send-email-john.garry@huawei.com
Fixes: 8d98416a55 ("scsi: hisi_sas: Switch v3 hw to MQ")
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-10-26 17:34:27 -04:00
..
hisi_sas_main.c scsi: hisi_sas: Stop using queue always for v2 hw 2020-10-26 17:34:27 -04:00
hisi_sas_v1_hw.c scsi: hisi_sas: Add missing newlines 2020-09-02 22:49:08 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: Code style cleanup 2020-09-02 22:49:08 -04:00
hisi_sas_v3_hw.c SCSI misc on 20201013 2020-10-14 15:15:35 -07:00
hisi_sas.h SCSI misc on 20201013 2020-10-14 15:15:35 -07:00
Kconfig scsi: hisi_sas: Add check for methods _PS0 and _PR0 2020-10-06 20:47:06 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00