+4
−14
Loading
This patch is in the patch series to migrate iSCSI connection management from core based to SPDK thread based. The callback to hot removal of LUN, iscsi_conn_remove_lun, is called on the same core when the corresponding LUN is opened. Additionally, all operations in iscsi_conn_remove_lun are completed synchronously. Hence inline _iscsi_conn_remove_lun into iscsi_conn_remove_lun. Add assert to check the function is called on the specified core. This change is helpful to achieve the goal of the patch series because spdk_event can have two parameters but spdk_msg can have only a single variable, and hence we cannot convert simply and have to introduce a context allocated dynamically otherwise. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Iaebf18265dfe839f7361b09539527a1806aed1c4 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463551 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Paul Luse <paul.e.luse@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com>