]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Stop using queue #0 always for v2 hw
authorJohn Garry <john.garry@huawei.com>
Thu, 15 Oct 2020 08:27:05 +0000 (16:27 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 26 Oct 2020 21:34:27 +0000 (17:34 -0400)
commit8e0ec08bcb26a4b1c8a4c7901d77c5437b7afce9
tree91e4bf9e473555acbfa3a8469cb8a5ef2d89f123
parentf1e3bbb5c2b9657a2f1ba5887219c4f2b24a0e8d
scsi: hisi_sas: Stop using queue #0 always for v2 hw

In commit 6a29568bc241 ("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 #0 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: 6a29568bc241 ("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>
drivers/scsi/hisi_sas/hisi_sas_main.c