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 d421876f98.

We had passed not xconn but conn caressly by mistake to
_iscsi_conn_drop().

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Ifc2313923bc0e94b967e4ba2eca4255ddcc4611b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1988
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Shuhei Matsumoto 2020-04-23 02:15:28 +09:00 committed by Jim Harris
parent 0b9b70d0f1
commit b0b0b8db2b

View File

@ -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++;
}