OSDN Git Service

scsi: lpfc: Fix ADISC reception terminating login state if a NVME target
authorJames Smart <jsmart2021@gmail.com>
Wed, 14 Aug 2019 23:56:39 +0000 (16:56 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Aug 2019 02:41:09 +0000 (22:41 -0400)
commit26d824ca45a80f7a95e7afe578e54680cef5236f
treea8f01a87aec182a2b5bc8c30154ca90581ac5f1b
parent7f20c1cb236afd75237f1302e60daef8b90b818b
scsi: lpfc: Fix ADISC reception terminating login state if a NVME target

If a target issues an ADISC to the port and the target is a NVME target,
the driver is inadvertantly invalidating the login and marking the remote
port as logged out. Communication with the target is lost.

Revise the ADISC check so that FCP or NVME targets will be marked valid at
the end of ADISC processing.  Enhance logging to recognize condition
better.

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_nportdisc.c