Spdk/module
GangCao 5d541746f3 nvmf: properly cleanup when failing to create subsystem
In the case of using CONF file, if two subsystems are assigned
with same subnqn, it fails at the second subsystem creation,
however the state machine is not set correctly.

The fix here is to properly set the state machine to roll back
the operations and destroy the created subsystem and exit the
application cleanly.

Change-Id: I4356802a12f7a2982485f61a69eceeb979033788
Signed-off-by: GangCao <gang.cao@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/476904
Community-CI: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-01-07 12:20:44 +00:00
..
bdev uring: Add a uring.h file. 2019-12-30 11:45:51 +00:00
blob blob_bdev: add spdk_bdev_create_bs_dev_from_desc 2019-09-18 02:59:59 +00:00
blobfs rpc/blobfs: add cache size setting rpc 2019-11-07 00:33:25 +00:00
copy ioat copy engine: free the registered io device. 2019-12-30 03:09:01 +00:00
env_dpdk env_dpdk/rpc: add rpc to get memory stats. 2019-12-13 11:05:57 +00:00
event nvmf: properly cleanup when failing to create subsystem 2020-01-07 12:20:44 +00:00
sock sock/posix: Use sendmsg instead of writev when flushing 2019-12-16 12:34:02 +00:00
Makefile env_dpdk/rpc: add rpc to get memory stats. 2019-12-13 11:05:57 +00:00