+36
−15
+2
−0
Loading
This patch changes iscsi_tgt_node_destruct to be asynchronous. spdk_iscsi_shutdown_tgt_node_by_name() uses the callback provided by iscsi_tgt_node_destruct(), but spdk_iscsi_shutdown_tgt_nodes() doesn't use it. The reason is that during shutdown all sessions are terminated already, and spdk_iscsi_shutdown_tgt_nodes() doesn't need to wait for the completion of iscsi_tgt_node_destruct() by using the callback. iscsi_tgt_node_destruct() will complete immediately in this case. spdk_scsi_dev_destruct() is not asynchronized yet and so iscsi_tgt_node_destruct() calls its callback directly in this patch. The next patch will replace the call. Change-Id: I86911c5297a93560551e0404d6ea85f49d647c22 Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450606 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com>