Skip to contentSkip to conversation

iscsi update: set correct state at creation time

PATCH New Mike Christie 1 participant 1 message Feb 2, 2006

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

PATCH 6/9 iscsi update: set correct state at creation time

Quoted 1 line

From [email protected]:

We are still in ISCSI_STATE_FREE state at create time. The addition of the first connection puts us in ISCSI_STATE_LOGGED_IN.

drivers/scsi/iscsi_tcp.c +1 -1
index 7965c46..f5ba940 100644
@@ -3267,7 +3267,7 @@ iscsi_session_create(struct scsi_transpo
 	session = iscsi_hostdata(shost->hostdata);
 	memset(session, 0, sizeof(struct iscsi_session));
 	session->host = shost;
-	session->state = ISCSI_STATE_LOGGED_IN;
+	session->state = ISCSI_STATE_FREE;
 	session->mgmtpool_max = ISCSI_MGMT_CMDS_MAX;
 	session->cmds_max = ISCSI_XMIT_CMDS_MAX;
 	session->cmdsn = initial_cmdsn;