public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 13/22] lpfc 8.3.39: Fixed deadlock between hbalock and nlp_lock use
@ 2013-04-18  0:18 James Smart
  0 siblings, 0 replies; only message in thread
From: James Smart @ 2013-04-18  0:18 UTC (permalink / raw)
  To: linux-scsi

Fixed deadlock between hbalock and nlp_lock use.


Signed-off-by: James Smart <james.smart@emulex.com>

 ---

 lpfc_hbadisc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


diff -upNr a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c	2013-04-15 18:26:26.937040890 -0400
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c	2013-04-15 18:26:44.695041295 -0400
@@ -160,11 +160,12 @@ lpfc_dev_loss_tmo_callbk(struct fc_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);




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-18  0:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-18  0:18 [PATCH 13/22] lpfc 8.3.39: Fixed deadlock between hbalock and nlp_lock use James Smart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox