lib/iscsi: Change the function name of spdk_iscsi_conn_stop_poller

The iSCSI connection does not have the poller anymore, so
change the name

Change-Id: I534f72998c6bcc73ad9caf5e8f700751acd95c99
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/401372
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Ziye Yang 2018-02-26 11:38:39 +08:00 committed by Daniel Verkamp
parent 3b79e625fe
commit 1f94a99933

View File

@ -80,7 +80,7 @@ void spdk_iscsi_conn_login_do_work(void *arg);
void spdk_iscsi_conn_full_feature_do_work(void *arg); void spdk_iscsi_conn_full_feature_do_work(void *arg);
static void spdk_iscsi_conn_full_feature_migrate(void *arg1, void *arg2); static void spdk_iscsi_conn_full_feature_migrate(void *arg1, void *arg2);
static void spdk_iscsi_conn_stop_poller(struct spdk_iscsi_conn *conn); static void spdk_iscsi_conn_stop(struct spdk_iscsi_conn *conn);
static struct spdk_iscsi_conn * static struct spdk_iscsi_conn *
allocate_conn(void) allocate_conn(void)
@ -481,7 +481,7 @@ _spdk_iscsi_conn_check_shutdown(void *arg)
spdk_poller_unregister(&conn->shutdown_timer); spdk_poller_unregister(&conn->shutdown_timer);
spdk_iscsi_conn_stop_poller(conn); spdk_iscsi_conn_stop(conn);
_spdk_iscsi_conn_free(conn); _spdk_iscsi_conn_free(conn);
} }
@ -509,7 +509,7 @@ void spdk_iscsi_conn_destruct(struct spdk_iscsi_conn *conn)
/* The connection cannot be freed yet. Check back later. */ /* The connection cannot be freed yet. Check back later. */
conn->shutdown_timer = spdk_poller_register(_spdk_iscsi_conn_check_shutdown, conn, 1000); conn->shutdown_timer = spdk_poller_register(_spdk_iscsi_conn_check_shutdown, conn, 1000);
} else { } else {
spdk_iscsi_conn_stop_poller(conn); spdk_iscsi_conn_stop(conn);
_spdk_iscsi_conn_free(conn); _spdk_iscsi_conn_free(conn);
} }
} }
@ -563,10 +563,10 @@ spdk_iscsi_conn_check_shutdown(void *arg)
} }
/** /**
* This function will stop the poller for the specified connection. * This function will stop executing the specified connection.
*/ */
static void static void
spdk_iscsi_conn_stop_poller(struct spdk_iscsi_conn *conn) spdk_iscsi_conn_stop(struct spdk_iscsi_conn *conn)
{ {
struct spdk_iscsi_tgt_node *target; struct spdk_iscsi_tgt_node *target;
@ -1210,7 +1210,7 @@ spdk_iscsi_conn_login_do_work(void *arg)
pthread_mutex_unlock(&target->mutex); pthread_mutex_unlock(&target->mutex);
} }
spdk_iscsi_conn_stop_poller(conn); spdk_iscsi_conn_stop(conn);
__sync_fetch_and_add(&g_num_connections[lcore], 1); __sync_fetch_and_add(&g_num_connections[lcore], 1);
event = spdk_event_allocate(lcore, spdk_iscsi_conn_full_feature_migrate, event = spdk_event_allocate(lcore, spdk_iscsi_conn_full_feature_migrate,