lib/iscsi: Refactor spdk_iscsi_conn_execute
Purpose: To make the logic clear. Change-Id: I6176f359a23816b316e92b63ee2e5d5175ae7e7b Signed-off-by: Ziye Yang <optimistyzy@gmail.com> Reviewed-on: https://review.gerrithub.io/401772 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
1a907f11fd
commit
6140f2d147
@ -1165,18 +1165,13 @@ spdk_iscsi_conn_execute(struct spdk_iscsi_conn *conn)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (conn->state == ISCSI_CONN_STATE_EXITING) {
|
||||
goto conn_exit;
|
||||
}
|
||||
|
||||
spdk_iscsi_conn_handle_queued_datain_tasks(conn);
|
||||
|
||||
conn_exit:
|
||||
if (conn->state == ISCSI_CONN_STATE_EXITING) {
|
||||
spdk_iscsi_conn_destruct(conn);
|
||||
return -1;
|
||||
}
|
||||
|
||||
spdk_iscsi_conn_handle_queued_datain_tasks(conn);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user