diff options
author | James Smart <james.smart@emulex.com> | 2013-04-17 20:18:19 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-02 16:03:52 -0400 |
commit | a62a435adaa0137ca2a53bc2b57f99ffe0324bcb (patch) | |
tree | aeec2eb8d91be5bcb57ad0dbef453958ac7666b7 | |
parent | a6887e2874916aff0f56ae8f2cded797fa9b2225 (diff) |
[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>
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 3 |
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) | |||
160 | if (!list_empty(&evtp->evt_listp)) | 160 | if (!list_empty(&evtp->evt_listp)) |
161 | return; | 161 | return; |
162 | 162 | ||
163 | evtp->evt_arg1 = lpfc_nlp_get(ndlp); | ||
164 | |||
163 | spin_lock_irq(&phba->hbalock); | 165 | spin_lock_irq(&phba->hbalock); |
164 | /* We need to hold the node by incrementing the reference | 166 | /* We need to hold the node by incrementing the reference |
165 | * count until this queued work is done | 167 | * count until this queued work is done |
166 | */ | 168 | */ |
167 | evtp->evt_arg1 = lpfc_nlp_get(ndlp); | ||
168 | if (evtp->evt_arg1) { | 169 | if (evtp->evt_arg1) { |
169 | evtp->evt = LPFC_EVT_DEV_LOSS; | 170 | evtp->evt = LPFC_EVT_DEV_LOSS; |
170 | list_add_tail(&evtp->evt_listp, &phba->work_list); | 171 | list_add_tail(&evtp->evt_listp, &phba->work_list); |