diff options
author | Justin Tee <[email protected]> | 2023-03-01 15:16:22 -0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-03-09 21:21:44 -0500 |
commit | db651ec22524eb8f9c854fbb4d9acd5d7e5be9e4 (patch) | |
tree | 6b964d3c78aca3a2b66deea646d28f1afc358aac /net/unix/af_unix.c | |
parent | 1d0f9fea5d7f48078a706c90e4fd79cf697b5b3c (diff) |
scsi: lpfc: Correct used_rpi count when devloss tmo fires with no recovery
A fabric controller can sometimes send an RDP request right before a link
down event. Because of this outstanding RDP request, the driver does not
remove the last reference count on its ndlp causing a potential leak of RPI
resources when devloss tmo fires.
In lpfc_cmpl_els_rsp(), modify the NPIV clause to always allow the
lpfc_drop_node() routine to execute when not registered with SCSI
transport.
This relaxes the contraint that an NPIV ndlp must be in a specific state in
order to call lpfc_drop node. Logic is revised such that the
lpfc_drop_node() routine is always called to ensure the last ndlp decrement
occurs.
Signed-off-by: Justin Tee <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions