From 832d90c1e22083a67f9d346d278233a617780633 Mon Sep 17 00:00:00 2001 From: Shuhei Matsumoto Date: Thu, 31 Oct 2019 11:52:18 +0900 Subject: [PATCH] Revert "lib/iscsi: Close the being hot-removed LUN even if connection is in exiting This reverts commit Iad6ecdc37493fa9f2d7ccab262a2c75dac2fcd48. Both estimated cause and code change were wrong and didn't fix the issue. The next patch will fix the issue. Signed-off-by: Shuhei Matsumoto Change-Id: I00c8bb515ee39522c0e744dccfb839af15e946c4 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/472895 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- 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 c59e9e20d..8af08fce4 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -500,8 +500,8 @@ _iscsi_conn_remove_lun(void *_ctx) assert(spdk_io_channel_get_thread(spdk_io_channel_from_ctx(conn->pg)) == spdk_get_thread()); - /* If a connection is exited, associated LUNs are already closed and just return */ - if (conn->state >= ISCSI_CONN_STATE_EXITED) { + /* If a connection is already in stating status, just return */ + if (conn->state >= ISCSI_CONN_STATE_EXITING) { return; }