From b0b0b8db2b4c33abed976933ba7f9a4227bc8b0b Mon Sep 17 00:00:00 2001 From: Shuhei Matsumoto Date: Thu, 23 Apr 2020 02:15:28 +0900 Subject: [PATCH] lib/iscsi: Fix the bug of "lib/iscsi: Fix conn->state not go back to EXITING by using spdk_thread_send_msg" This patch fixes the bug in commit d421876f98ca23e476ebcd2f91102e2183fd5622. We had passed not xconn but conn caressly by mistake to _iscsi_conn_drop(). Signed-off-by: Shuhei Matsumoto Change-Id: Ifc2313923bc0e94b967e4ba2eca4255ddcc4611b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1988 Reviewed-by: Changpeng Liu Reviewed-by: Aleksey Marchuk Reviewed-by: Jim Harris Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins --- lib/iscsi/conn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index 5c77a5cd9..4d9bc4cd1 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -961,8 +961,8 @@ iscsi_drop_conns(struct spdk_iscsi_conn *conn, const char *conn_match, SPDK_DEBUGLOG(SPDK_LOG_ISCSI, "CID=%u\n", xconn->cid); - thread = spdk_io_channel_get_thread(spdk_io_channel_from_ctx(conn->pg)); - spdk_thread_send_msg(thread, _iscsi_conn_drop, conn); + thread = spdk_io_channel_get_thread(spdk_io_channel_from_ctx(xconn->pg)); + spdk_thread_send_msg(thread, _iscsi_conn_drop, xconn); num++; }