7e8a611568
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> |
||
---|---|---|
.. | ||
iscsi_tgt | ||
iscsi_top | ||
nvmf_tgt | ||
trace | ||
vhost | ||
Makefile |