提交 351f739e 编写于 作者: M Mike Christie 提交者:

[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: NMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: NAlex Aizman <itn780@yahoo.com>
Signed-off-by: NDmitry Yusupov <dmitry_yus@yahoo.com>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 1fd459e3
...@@ -3267,7 +3267,7 @@ iscsi_session_create(struct scsi_transport_template *scsit, ...@@ -3267,7 +3267,7 @@ iscsi_session_create(struct scsi_transport_template *scsit,
session = iscsi_hostdata(shost->hostdata); session = iscsi_hostdata(shost->hostdata);
memset(session, 0, sizeof(struct iscsi_session)); memset(session, 0, sizeof(struct iscsi_session));
session->host = shost; session->host = shost;
session->state = ISCSI_STATE_LOGGED_IN; session->state = ISCSI_STATE_FREE;
session->mgmtpool_max = ISCSI_MGMT_CMDS_MAX; session->mgmtpool_max = ISCSI_MGMT_CMDS_MAX;
session->cmds_max = ISCSI_XMIT_CMDS_MAX; session->cmds_max = ISCSI_XMIT_CMDS_MAX;
session->cmdsn = initial_cmdsn; session->cmdsn = initial_cmdsn;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册