summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2013-04-18 02:18:19 +0200
committerJames Bottomley <JBottomley@Parallels.com>2013-05-02 22:03:52 +0200
commita62a435adaa0137ca2a53bc2b57f99ffe0324bcb (patch)
treeaeec2eb8d91be5bcb57ad0dbef453958ac7666b7 /drivers
parent[SCSI] lpfc 8.3.39: Fixed BlockGuard to take advantage of rdprotect/wrprotect... (diff)
downloadlinux-a62a435adaa0137ca2a53bc2b57f99ffe0324bcb.tar.xz
linux-a62a435adaa0137ca2a53bc2b57f99ffe0324bcb.zip
[SCSI] lpfc 8.3.39: Fixed deadlock between hbalock and nlp_lock use
Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/lpfc/lpfc_hbadisc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index 3081db730b44..3faa0a92331a 100644
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -160,11 +160,12 @@ lpfc_dev_loss_tmo_callbk(struct fc_rport *rport)
if (!list_empty(&evtp->evt_listp))
return;
+ evtp->evt_arg1 = lpfc_nlp_get(ndlp);
+
spin_lock_irq(&phba->hbalock);
/* We need to hold the node by incrementing the reference
* count until this queued work is done
*/
- evtp->evt_arg1 = lpfc_nlp_get(ndlp);
if (evtp->evt_arg1) {
evtp->evt = LPFC_EVT_DEV_LOSS;
list_add_tail(&evtp->evt_listp, &phba->work_list);