diff options
author | James Smart <jsmart2021@gmail.com> | 2021-07-07 20:43:49 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-07-19 04:30:37 +0200 |
commit | ab803860882514ddbf97713b143b861b524e8476 (patch) | |
tree | 7b635c3331898d844dd9c131dee1165d61792709 /.clang-format | |
parent | scsi: lpfc: Skip reg_vpi when link is down for SLI3 in ADISC cmpl path (diff) | |
download | linux-ab803860882514ddbf97713b143b861b524e8476.tar.xz linux-ab803860882514ddbf97713b143b861b524e8476.zip |
scsi: lpfc: Skip issuing ADISC when node is in NPR state
When a node moves to NPR state due to a device recovery event, the
nlp_fc4_types in the node are cleared. An ADISC received for a node in the
NPR state triggers an ADISC. Without fc4 types being known, the calls to
register with the transport are no-op'd, thus no additional references are
placed on the node by transport re-registrations. A subsequent RSCN could
trigger another unregister request, which will decrement the reference
counts, leading to the ref count hitting zero and the node being freed
while futher discovery on the node is being attempted by the RSCN event
handling.
Fix by skipping the trigger of an ADISC when in NPR state. The normal ADISC
process will kick off in the regular discovery path after receiving a
response from name server.
Link: https://lore.kernel.org/r/20210707184351.67872-19-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>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions