numam-spdk/lib/iscsi
Shuhei Matsumoto 8cf1945432 iscsi: Hot remove callback closes LUN directly without using event call
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>
2019-08-08 05:35:01 +00:00
..
conn.c iscsi: Hot remove callback closes LUN directly without using event call 2019-08-08 05:35:01 +00:00
conn.h iscsi: Remove cpumask from portals 2019-08-08 05:35:01 +00:00
init_grp.c iscsi: Use not malloc'ed but fixed size string for initiator address 2019-07-01 05:03:07 +00:00
init_grp.h iscsi: Use not malloc'ed but fixed size string for initiator address 2019-07-01 05:03:07 +00:00
iscsi_rpc.c iscsi: Remove cpumask from portals 2019-08-08 05:35:01 +00:00
iscsi_subsystem.c sock: Fix return value of spdk_sock_group_poll to return number of events 2019-08-02 00:19:43 +00:00
iscsi.c iscsi: Use not malloc'ed but fixed size string for target name and alias 2019-07-01 05:03:07 +00:00
iscsi.h iscsi: Simplify include relationships to avoid cyclic inclusion 2019-07-01 05:03:07 +00:00
Makefile iscsi: Move acceptor into portal_grp 2019-05-16 23:23:45 +00:00
md5.c astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
md5.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
param.c iscsi: Remove the prefix spdk_ from names of private functions 2019-04-01 00:52:56 +00:00
param.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
portal_grp.c iscsi: Remove cpumask from portals 2019-08-08 05:35:01 +00:00
portal_grp.h iscsi: Remove cpumask from portals 2019-08-08 05:35:01 +00:00
task.c iscsi: Remove the prefix spdk_ from names of private functions 2019-04-01 00:52:56 +00:00
task.h iscsi: Propagate SCSI error status to split SCSI read/write commands 2018-12-11 16:37:55 +00:00
tgt_node.c iscsi: Use not malloc'ed but fixed size string for target name and alias 2019-07-01 05:03:07 +00:00
tgt_node.h iscsi: Use not malloc'ed but fixed size string for target name and alias 2019-07-01 05:03:07 +00:00