diff options
| author | James Smart <james.smart@broadcom.com> | 2020-11-15 11:26:35 -0800 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-11-17 00:43:55 -0500 |
| commit | 52edb2caf675684acf2140a125de4774c691fecd (patch) | |
| tree | bb749afbdd2d762207214d61f61d166121735950 /tools/perf/scripts/python/Perf-Trace-Util/lib | |
| parent | c6adba150191762a7e58644f9e522d9d6d945e1c (diff) | |
| download | linux-52edb2caf675684acf2140a125de4774c691fecd.tar.gz linux-52edb2caf675684acf2140a125de4774c691fecd.zip | |
scsi: lpfc: Remove ndlp when a PLOGI/ADISC/PRLI/REG_RPI ultimately fails
When a PLOGI/ADISC/PRLI/REG_RPI fails, the node remains in the nodelist in
that state. Although the driver now frees a node when the ref count goes
to zero, in this case the ref cnt doesn't reach zero because there isn't a
mechanism to release the final reference. Discovery just stops.
Fix by calling the node discovery state machine DEVICE_RM event whenever
one of these commands fail. This will remove the final reference count and
trigger node release.
Link: https://lore.kernel.org/r/20201115192646.12977-7-james.smart@broadcom.com
Co-developed-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions
