numam-spdk/lib/event
Ziye Yang 4e331534f1 event/subsystem: solve the subsystem init and destroy conflict
We have conflict to handle the NVMf subsystem shut
down. The situation is that:

If there is shutdown request (e.g., ctrlr+c),
we may have subsystem finalization and subsystem
initialization conflict (e.g., have NVMf subsystem fini and
intialization together), we will have coredump
issue like #682.

If we interrupt the initialization of the subsystem,
following works should do:

1  Do not initilize the next subsystem.
2  Recycle the resources in each subsystem via the
spdk_subsystem_fini related function. And this patch will
do the general thing, but will not consider the detailed
interrupt policy in each subsystem.

Change-Id: I2438b4a2462acb05d8c8e06dfff3da3d388d4b70
Signed-off-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-on: https://review.gerrithub.io/c/446189
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Seth Howell <seth.howell5141@gmail.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2019-03-01 04:36:41 +00:00
..
rpc event: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
subsystems event/nvmf: remove the unnecessary check in spdk_nvmf_subsystem_fini 2019-02-27 08:17:52 +00:00
app.c event: Change the base to 0 when calling strtol 2019-02-18 07:55:36 +00:00
json_config.c json_config: dont dereference when no next config entry 2019-01-22 19:21:46 +00:00
json_config.h app: add option to read json configuration files during startup 2019-01-14 04:48:18 +00:00
Makefile app: add option to read json configuration files during startup 2019-01-14 04:48:18 +00:00
reactor.c event: The reactor now contains a list of threads 2019-02-14 14:58:56 +00:00
rpc.c thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
subsystem.c event/subsystem: solve the subsystem init and destroy conflict 2019-03-01 04:36:41 +00:00