public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] thaw FC local port
@ 2010-12-16 16:07 Hillf Danton
  2010-12-16 23:18 ` Robert Love
  0 siblings, 1 reply; 6+ messages in thread
From: Hillf Danton @ 2010-12-16 16:07 UTC (permalink / raw)
  To: devel; +Cc: Joe Eykholt, linux-scsi

The state machine of local port is freezed if it could not get ready,
so thawing is necessary.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
---

--- a/drivers/scsi/libfc/fc_lport.c	2010-11-01 19:54:12.000000000 +0800
+++ b/drivers/scsi/libfc/fc_lport.c	2010-12-17 00:08:06.000000000 +0800
@@ -1514,11 +1514,11 @@ void fc_lport_enter_flogi(struct fc_lpor

 	fc_lport_state_enter(lport, LPORT_ST_FLOGI);

-	if (lport->point_to_multipoint) {
-		if (lport->port_id)
+	if (lport->point_to_multipoint)
+		if (lport->port_id) {
 			fc_lport_enter_ready(lport);
-		return;
-	}
+			return;
+		}

 	fp = fc_frame_alloc(lport, sizeof(struct fc_els_flogi));
 	if (!fp)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-18 13:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-16 16:07 [PATCH] thaw FC local port Hillf Danton
2010-12-16 23:18 ` Robert Love
2010-12-17 13:46   ` Hillf Danton
2010-12-17 19:04     ` Robert Love
2010-12-18 13:20       ` Hillf Danton
2010-12-17 19:33     ` Joe Eykholt

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