]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Don't check .nr_hw_queues in hisi_sas_task_prep()
authorJohn Garry <john.garry@huawei.com>
Tue, 26 Jan 2021 11:04:25 +0000 (19:04 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Jan 2021 04:02:11 +0000 (23:02 -0500)
commit1ce8600901ccdec47ad38ae9b728f7756f477d0c
tree436a1e6d853cbf1169d1128ed0c1b2b687f9a81e
parent8826639b79b850fe12e2b4cfc14332d7554fae9f
scsi: hisi_sas: Don't check .nr_hw_queues in hisi_sas_task_prep()

Now that v2 and v3 hw expose their HW queues (and so shost.nr_hw_queues is
set), remove the conditional checks in hisi_sas_task_prep().

This change would affect v1 HW performance (as it does not expose HW
queues), but nobody uses it and support may be dropped soon.

Link: https://lore.kernel.org/r/1611659068-131975-3-git-send-email-john.garry@huawei.com
Reviewed-by: Xiang Chen <chenxiang66@hisilicon.com>
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