]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix non-optimized ERSP handling
authorJames Smart <jsmart2021@gmail.com>
Fri, 14 May 2021 19:55:50 +0000 (12:55 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 22 May 2021 03:23:27 +0000 (23:23 -0400)
commit73f0dfc7a469f090c29c041a6ca54f00311426a0
tree9422090a1b9b009358c7bc43dff0c4c114f16a2d
parent73f8c440205045711b25202dd01944a0cbca30ff
scsi: lpfc: Fix non-optimized ERSP handling

When processing an NVMe ERSP IU which didn't match the optimized CQE-only
path, the status was being left to the WQE status. WQE status is non-zero
as it is indicating a non-optimized completion that needs to be handled by
the driver.

Fix by clearing the status field when falling into the non-optimized
case. Log message added to track optimized vs non-optimized debug.

Link: https://lore.kernel.org/r/20210514195559.119853-3-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