Spdk/lib/iscsi
Jim Harris c695156049 iscsi: add EXITING conns to pg after full_feature_migrate
Commit 41f59559e added code to skip adding EXITING connections
to the new poll group in the full_feature_migrate message
callback.  The problem is that since the connection is in
EXITING state and is not in a poll group, it will never move
to EXITED state, nor get removed from g_active_conns, and
hence will block the iscsi subsystem from being able to
shutdown.

So instead, assert that the connection is not in EXITED
state.  If it is in EXITING state, we will add it to the
poll group, and then when the poll group is next polled,
it will destroy the connection, moving it to EXITED
state and removing it from the g_active_conns STAILQ.

This fix is related to issue #2416.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ie8e64c811a5602ba4b28871bc535f5fa49dffc18
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16019
Reviewed-by: Michal Berger <michal.berger@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
2022-12-23 09:27:48 +00:00
..
conn.c iscsi: add EXITING conns to pg after full_feature_migrate 2022-12-23 09:27:48 +00:00
conn.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
init_grp.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
init_grp.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
iscsi_rpc.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
iscsi_subsystem.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
iscsi.c misc: Fix spelling mistakes 2022-12-09 08:16:18 +00:00
iscsi.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00
md5.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
md5.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
param.c lib/iscsi: missing a comma for the string 2022-12-20 09:20:31 +00:00
param.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
portal_grp.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
portal_grp.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
spdk_iscsi.map subsystem/iscsi: remove legacy config support 2020-10-20 08:53:53 +00:00
task.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
task.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
tgt_node.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
tgt_node.h update Intel copyright notices 2022-11-10 08:28:53 +00:00