lib/iscsi: rename spdk_iscsi_conn_execute

Change-Id: Ic11e65c07738017a2534fbff58101957a8381fc4
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/401976
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Ziye Yang 2018-03-01 12:56:06 +08:00 committed by Daniel Verkamp
parent 38fb230249
commit 650e9ed56e

View File

@ -1166,7 +1166,7 @@ spdk_iscsi_conn_sock_cb(void *arg, struct spdk_sock_group *group, struct spdk_so
}
static int
spdk_iscsi_conn_execute(struct spdk_iscsi_conn *conn)
spdk_iscsi_conn_check_state(struct spdk_iscsi_conn *conn)
{
if (conn->state == ISCSI_CONN_STATE_EXITED) {
return -1;
@ -1203,8 +1203,8 @@ spdk_iscsi_conn_login_do_work(void *arg)
int rc;
struct spdk_event *event;
/* General connection processing */
rc = spdk_iscsi_conn_execute(conn);
/* iSCSI connection state check */
rc = spdk_iscsi_conn_check_state(conn);
if (rc < 0) {
return;
}
@ -1254,7 +1254,8 @@ spdk_iscsi_conn_full_feature_do_work(void *arg)
{
struct spdk_iscsi_conn *conn = arg;
spdk_iscsi_conn_execute(conn);
/* iSCSI connection state check */
spdk_iscsi_conn_check_state(conn);
}
void