Skip to contentSkip to conversation

lpfc: Correct loss of target discovery after cable swap.

PATCH In review James Smart 2 participants 2 messages Apr 20, 2015 – Apr 21, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/14 lpfc: Correct loss of target discovery after cable swap.

Correct loss of target discovery after cable swap.

Fix incorrect reference counting

---
 drivers/scsi/lpfc/lpfc_hbadisc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/lpfc/lpfc_hbadisc.c +2 -2
index f2db89f..72388a6 100644
@@ -4296,9 +4296,9 @@ lpfc_drop_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
 	if (vport->phba->sli_rev == LPFC_SLI_REV4) {
 		lpfc_cleanup_vports_rrqs(vport, ndlp);
 		lpfc_unreg_rpi(vport, ndlp);
-	} else {
-		lpfc_nlp_put(ndlp);
 	}
+
+	lpfc_nlp_put(ndlp);
 	return;
 }
 
Signature · 1 line
1.7.11.7
Reviewed-by on v1 2/14
#1 lore raw
Quoted 18 lines · James Smart

Correct loss of target discovery after cable swap.

Fix incorrect reference counting

---
 drivers/scsi/lpfc/lpfc_hbadisc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/lpfc/lpfc_hbadisc.c +0 -0
index f2db89f..72388a6 100644
@@ -4296,9 +4296,9 @@ lpfc_drop_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
 	if (vport->phba->sli_rev == LPFC_SLI_REV4) {

drivers/scsi/lpfc/lpfc_hbadisc.c lpfc_drop_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) · line 4304

Quoted 10 lines
drivers/scsi/lpfc/lpfc_hbadisc.c +2 -2
 		lpfc_cleanup_vports_rrqs(vport, ndlp);
 		lpfc_unreg_rpi(vport, ndlp);
-	} else {
-		lpfc_nlp_put(ndlp);
 	}
+
+	lpfc_nlp_put(ndlp);
 	return;
 }
 

Cheers,

Hannes

Signature · 8 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html