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: Cunyin Chang <cunyin.chang@intel.com>
This commit is contained in:
parent
73e926f087
commit
7a17d4e249
@ -1233,6 +1233,9 @@ spdk_iscsi_conn_execute(struct spdk_iscsi_conn *conn)
|
|||||||
uint64_t tsc;
|
uint64_t tsc;
|
||||||
bool conn_active = false;
|
bool conn_active = false;
|
||||||
|
|
||||||
|
if (conn->state == ISCSI_CONN_STATE_EXITING) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
/* Check for nop interval expiration */
|
/* Check for nop interval expiration */
|
||||||
rc = spdk_iscsi_conn_handle_nop(conn);
|
rc = spdk_iscsi_conn_handle_nop(conn);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user