From 650e9ed56e0cd7e9f2d2d91e169d4e92b375f64d Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Thu, 1 Mar 2018 12:56:06 +0800 Subject: [PATCH] lib/iscsi: rename spdk_iscsi_conn_execute Change-Id: Ic11e65c07738017a2534fbff58101957a8381fc4 Signed-off-by: Ziye Yang Reviewed-on: https://review.gerrithub.io/401976 Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- lib/iscsi/conn.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index 69b5a54b3..f407c7caf 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -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