]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: fix lpfc_nvmet_mrq to be bound by hdw queue count
authorJames Smart <jsmart2021@gmail.com>
Fri, 18 Oct 2019 21:18:17 +0000 (14:18 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Oct 2019 01:02:04 +0000 (21:02 -0400)
commit657a7ca15dc25537a044df3b981bf54cf3b48346
tree1261e52e366c25735756c109ba75d8ceadca3630
parent1c2617d19de42a117b58524d8a6b6171ab116cbe
scsi: lpfc: fix lpfc_nvmet_mrq to be bound by hdw queue count

Currently, lpfc_nvmet_mrq is always scaled back to the min(lpfc_nvmet_mrq,
lpfc_irq_chann). There's no reason to reduce it to the number of interrupt
vectors.  Rather, it should be scaled down based on the number of hardware
queues for the system (if lower than max of 16).

Change scaling to use hardware queue count rather than interrupt vector
count.

Link: https://lore.kernel.org/r/20191018211832.7917-2-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c
drivers/scsi/lpfc/lpfc_init.c