Loading
lib/iscsi: Free session pool after all connections are exited
Global session pool had been freed immediately after starting connection shutdown. iSCSI connection shutdown is asynchronous. It will be safe to free global session pool after completion of all connections shutdown. Hence move free(g_spdk_iscsi.session) from spdk_iscsi_fini() to _iscsi_fini_dev_unreg(). Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I4c16930a0e861a190115049cba3739ec01f0a8a2 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/494 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com>