]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Improve PBDE checks during SGL processing
authorJames Smart <jsmart2021@gmail.com>
Fri, 10 Sep 2021 23:31:58 +0000 (16:31 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 15 Sep 2021 03:33:22 +0000 (23:33 -0400)
commitf4850347844b65611dcd77e05e12b0d5e2652b54
tree9ff2fa581d919fb61f9c96d41842d5720de34699
parentb329af9f628f8c59c038133f2fbfe9d080d07e7f
scsi: lpfc: Improve PBDE checks during SGL processing

The PBDE feature, setting payload buffer address explicitly in the WQE so
it doesn't have to be fetched from the SGL, only makes sense when there is
a single buffer for the I/O. When there are multiple buffers it actually
hurts performance as the SGL subsequently has to be fetched.

Rework the SGL logic to only use PBDE when a single buffer.

Link: https://lore.kernel.org/r/20210910233159.115896-14-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvme.c
drivers/scsi/lpfc/lpfc_nvmet.c
drivers/scsi/lpfc/lpfc_scsi.c