]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Clean up hba max_lun_queue_depth checks
authorJames Smart <jsmart2021@gmail.com>
Tue, 28 Jan 2020 00:23:09 +0000 (16:23 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 11 Feb 2020 03:46:56 +0000 (22:46 -0500)
commitf2cef085b9fb266eba1f9f52fc8ab6f8e07fe548
tree9cc3ca0d8208204361304950dec1fa5bc7f1f852
parentf835c7fe8f0774bc26f5d18addf73fe8c7229400
scsi: lpfc: Clean up hba max_lun_queue_depth checks

The current code does some odd +1 over maximum xri count checks and
requires that the lun_queue_count can't be bigger than maximum xri count
divided by 8. These items are bogus.

Clean the code up to cap lun_queue_count to maximum xri count.

Link: https://lore.kernel.org/r/20200128002312.16346-10-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
drivers/scsi/lpfc/lpfc_sli.c