projects
/
wrapfs-5.15.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5dcdf6
)
scsi: lpfc: Replace hbalock with ndlp lock in lpfc_nvme_unregister_port()
author
Justin Tee
<justin.tee@broadcom.com>
Tue, 5 Mar 2024 20:04:56 +0000
(12:04 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 17 May 2024 09:50:52 +0000
(11:50 +0200)
[ Upstream commit
d11272be497e48a8e8f980470eb6b70e92eed0ce
]
The ndlp object update in lpfc_nvme_unregister_port() should be protected
by the ndlp lock rather than hbalock.
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link:
https://lore.kernel.org/r/20240305200503.57317-6-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/lpfc/lpfc_nvme.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/lpfc/lpfc_nvme.c
b/drivers/scsi/lpfc/lpfc_nvme.c
index 4e0c0b273e5fe84eff29f7453dd00b2626b2c43e..2ff8ace6f78f29c68b9c0d1b071dac8688181ca9 100644
(file)
--- a/
drivers/scsi/lpfc/lpfc_nvme.c
+++ b/
drivers/scsi/lpfc/lpfc_nvme.c
@@
-2539,9
+2539,9
@@
lpfc_nvme_unregister_port(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
/* No concern about the role change on the nvme remoteport.
* The transport will update it.
*/
- spin_lock_irq(&
vport->phba->hba
lock);
+ spin_lock_irq(&
ndlp->
lock);
ndlp->fc4_xpt_flags |= NVME_XPT_UNREG_WAIT;
- spin_unlock_irq(&
vport->phba->hba
lock);
+ spin_unlock_irq(&
ndlp->
lock);
/* Don't let the host nvme transport keep sending keep-alives
* on this remoteport. Vport is unloading, no recovery. The