]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: lpfc: Fix reset recovery paths that are not recovering
authorJames Smart <jsmart2021@gmail.com>
Tue, 3 Sep 2019 21:54:41 +0000 (14:54 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 7 Sep 2019 20:28:15 +0000 (16:28 -0400)
commit4fb86a6bc549fc482bdb21086aa272668ed955d2
treefeb3d4ef9c027b0aadc6b146da20e385ce294c4e
parent2d44d165e93975c5f209f49fdd8e3d682ef255dd
scsi: lpfc: Fix reset recovery paths that are not recovering

A recent patch unconditionally marks the hba as in error as part of
resetting the adapter. The driver flow that called the adapter reset was a
recovery path, which expects the adapter to not be in an error state in
order to finish the recovery.  Given the new error state being set, the
recovery fails and the adapter is left in limbo.

Revise the adapter reset routine so that it will only mark the adapter in
error if it was unable to reset the adapter.

Fixes: 8c24a4f643ed ("scsi: lpfc: Fix crash due to port reset racing vs adapter error handling")
Link: https://lore.kernel.org/r/20190903215441.10490-1-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_sli.c