Skip to content

Commit d11272b

Browse files
Justin Teemartinkpetersen
authored andcommitted
scsi: lpfc: Replace hbalock with ndlp lock in lpfc_nvme_unregister_port()
The ndlp object update in lpfc_nvme_unregister_port() should be protected by the ndlp lock rather than hbalock. Signed-off-by: Justin Tee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent bb01163 commit d11272b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/scsi/lpfc/lpfc_nvme.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,9 +2616,9 @@ lpfc_nvme_unregister_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
26162616
/* No concern about the role change on the nvme remoteport.
26172617
* The transport will update it.
26182618
*/
2619-
spin_lock_irq(&vport->phba->hbalock);
2619+
spin_lock_irq(&ndlp->lock);
26202620
ndlp->fc4_xpt_flags |= NVME_XPT_UNREG_WAIT;
2621-
spin_unlock_irq(&vport->phba->hbalock);
2621+
spin_unlock_irq(&ndlp->lock);
26222622

26232623
/* Don't let the host nvme transport keep sending keep-alives
26242624
* on this remoteport. Vport is unloading, no recovery. The

0 commit comments

Comments
 (0)