Commit 650e9ed5 authored by Ziye Yang's avatar Ziye Yang Committed by Daniel Verkamp
Browse files

lib/iscsi: rename spdk_iscsi_conn_execute



Change-Id: Ic11e65c07738017a2534fbff58101957a8381fc4
Signed-off-by: default avatarZiye Yang <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/401976


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent 38fb2302
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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