Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 351f739e authored by Mike Christie's avatar Mike Christie Committed by
Browse files

[SCSI] iscsi update: set correct state at creation time



>From erezz@voltaire.com:

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

Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarAlex Aizman <itn780@yahoo.com>
Signed-off-by: default avatarDmitry Yusupov <dmitry_yus@yahoo.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 1fd459e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3267,7 +3267,7 @@ iscsi_session_create(struct scsi_transport_template *scsit,
	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;