From 8df1f6b220fb9b38c4f8008812d92eb34251d73a Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Mon, 29 Apr 2019 16:21:52 -0700 Subject: [PATCH] iscsi: Rename spdk_iscsi_conn_migrate to spdk_iscsi_conn_schedule This function is in charge of scheduling new connections onto cores. It used to be used to dynamically migrate connections, but we no longer do that. Change-Id: I2fa04a7dfb43bf9fae7902376ba5ba6d18744469 Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452727 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk Reviewed-by: Shuhei Matsumoto Reviewed-by: Paul Luse Reviewed-by: Jim Harris --- lib/iscsi/conn.c | 2 +- lib/iscsi/conn.h | 2 +- lib/iscsi/iscsi.c | 2 +- test/unit/lib/iscsi/iscsi.c/iscsi_ut.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index e3ea6ef0b..a94fa5860 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -1470,7 +1470,7 @@ iscsi_conn_full_feature_migrate(void *arg1, void *arg2) } void -spdk_iscsi_conn_migration(struct spdk_iscsi_conn *conn) +spdk_iscsi_conn_schedule(struct spdk_iscsi_conn *conn) { int lcore; struct spdk_event *event; diff --git a/lib/iscsi/conn.h b/lib/iscsi/conn.h index ce1011dab..8cde19c46 100644 --- a/lib/iscsi/conn.h +++ b/lib/iscsi/conn.h @@ -178,7 +178,7 @@ int spdk_iscsi_get_active_conns(struct spdk_iscsi_tgt_node *target); int spdk_iscsi_conn_construct(struct spdk_iscsi_portal *portal, struct spdk_sock *sock); void spdk_iscsi_conn_destruct(struct spdk_iscsi_conn *conn); void spdk_iscsi_conn_handle_nop(struct spdk_iscsi_conn *conn); -void spdk_iscsi_conn_migration(struct spdk_iscsi_conn *conn); +void spdk_iscsi_conn_schedule(struct spdk_iscsi_conn *conn); void spdk_iscsi_conn_logout(struct spdk_iscsi_conn *conn); int spdk_iscsi_drop_conns(struct spdk_iscsi_conn *conn, const char *conn_match, int drop_all); diff --git a/lib/iscsi/iscsi.c b/lib/iscsi/iscsi.c index 7c6dc8ad6..5b637f406 100644 --- a/lib/iscsi/iscsi.c +++ b/lib/iscsi/iscsi.c @@ -2134,7 +2134,7 @@ iscsi_op_login_rsp_handle_t_bit(struct spdk_iscsi_conn *conn, } conn->full_feature = 1; - spdk_iscsi_conn_migration(conn); + spdk_iscsi_conn_schedule(conn); break; default: diff --git a/test/unit/lib/iscsi/iscsi.c/iscsi_ut.c b/test/unit/lib/iscsi/iscsi.c/iscsi_ut.c index 2277d3a11..aea6a9b62 100644 --- a/test/unit/lib/iscsi/iscsi.c/iscsi_ut.c +++ b/test/unit/lib/iscsi/iscsi.c/iscsi_ut.c @@ -86,7 +86,7 @@ DEFINE_STUB(spdk_iscsi_tgt_node_is_destructed, bool, DEFINE_STUB_V(spdk_iscsi_portal_grp_close_all, (void)); -DEFINE_STUB_V(spdk_iscsi_conn_migration, (struct spdk_iscsi_conn *conn)); +DEFINE_STUB_V(spdk_iscsi_conn_schedule, (struct spdk_iscsi_conn *conn)); DEFINE_STUB_V(spdk_iscsi_conn_free_pdu, (struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu *pdu));