Commit f087796
scsi: lpfc: Handle duplicate D_IDs in ndlp search-by D_ID routine
JIRA: https://issues.redhat.com/browse/RHEL-82167
commit 56c3d80
Author: Justin Tee <justin.tee@broadcom.com>
Date: Thu Jan 30 16:05:22 2025 -0800
scsi: lpfc: Handle duplicate D_IDs in ndlp search-by D_ID routine
After a port swap between separate fabrics, there may be multiple nodes in
the vport's fc_nodes list with the same fabric well known address.
Duplication is temporary and eventually resolves itself after dev_loss_tmo
expires, but nameserver queries may still occur before dev_loss_tmo. This
possibly results in returning stale fabric ndlp objects. Fix by adding an
nlp_state check to ensure the ndlp search routine returns the correct newer
allocated ndlp fabric object.
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20250131000524.163662-5-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Dick Kennedy <dkennedy@redhat.com>1 parent 6f1678e commit f087796
1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5570 | 5570 | | |
5571 | 5571 | | |
5572 | 5572 | | |
| 5573 | + | |
5573 | 5574 | | |
5574 | 5575 | | |
5575 | 5576 | | |
| |||
5584 | 5585 | | |
5585 | 5586 | | |
5586 | 5587 | | |
5587 | | - | |
| 5588 | + | |
| 5589 | + | |
| 5590 | + | |
| 5591 | + | |
| 5592 | + | |
5588 | 5593 | | |
5589 | 5594 | | |
5590 | 5595 | | |
5591 | | - | |
5592 | | - | |
5593 | | - | |
5594 | | - | |
| 5596 | + | |
| 5597 | + | |
| 5598 | + | |
| 5599 | + | |
| 5600 | + | |
| 5601 | + | |
5595 | 5602 | | |
5596 | 5603 | | |
5597 | 5604 | | |
| |||
0 commit comments