Commit 7a17d4e2 authored by Cunyin Chang's avatar Cunyin Chang Committed by Jim Harris
Browse files

iscsi: Check the connection state in function spdk_iscsi_conn_execute().



This patch make sure the connection in normal state before any further
operation on this connection.

Change-Id: I776740b5b33b1de6707990c09d9131c385adf556
Signed-off-by: default avatarCunyin Chang <cunyin.chang@intel.com>
parent 73e926f0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1233,6 +1233,9 @@ spdk_iscsi_conn_execute(struct spdk_iscsi_conn *conn)
	uint64_t			tsc;
	bool				conn_active = false;

	if (conn->state == ISCSI_CONN_STATE_EXITING) {
		return -1;
	}
	/* Check for nop interval expiration */
	rc = spdk_iscsi_conn_handle_nop(conn);
	if (rc < 0) {