numam-spdk/app
Ziye Yang 7e8a611568 nvmf/tgt: Fix issues for ctrlr+ c handling.
When receving ctrlr+c event, NVMe-oF target
could in any state. So we cannot guarantee
g_acceptor_poller is initialized or not. If
we do not handle such case, ctrlr+c will
trigger unexpected coredump issue. To
solve this issue, following methods are used.

Currently, our code in event module (lib/event/app.c)
can only receive ctrlr + c command once, so
when we receive the ctrlr+c, we should complete
the shutdown process.

The idea is to use spdk_event_call, we will only
enter shutdown process if tgt is in NVMF_TGT_RUNNING
status.

After several patch tries, I think that this solution
is much simple. Though we would like to kill after
entering the running state, it may wait some time
if users kill the application in early state, but those
operations will not be quite often in real case.

Change-Id: Id89a96b5d39f8a528e72dea8c0eb6524bdaf7ee4
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/389433
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-12-26 14:49:42 -05:00
..
iscsi_tgt nbd: add NBD subsystem to apps 2017-12-12 13:36:22 -05:00
iscsi_top astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
nvmf_tgt nvmf/tgt: Fix issues for ctrlr+ c handling. 2017-12-26 14:49:42 -05:00
trace astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
vhost vhost: link with Linux-only libraries by default 2017-12-21 13:32:09 -05:00
Makefile Make iscsi app to work on freebsd 2017-08-01 13:42:02 -04:00