Currently SPDK rejects Connect command when subsystem is not active. This change allows to queue Connect command and execute it when the subsystem goes back to active state. To queue the command we should know subsystem_poll_group, in current implementation this poll_group is known only when controller is already created. To get the poll_group for Connect command we can retrive subsystem subnqn, find subsystem and get poll_group by subsystem->id. Increment subsystem_poll_group->io_outstanding even for Connect cmd in order to prevent subsystem change state during the connection process. Update spdk_nvmf_request_complete - decrement io_outstanding for Connect cmd. Fixes #1256 Change-Id: I724abb911696d7234a9c9d27458eba24739b26fd Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1273 Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com> Reviewed-by: <dongx.yi@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
ctrlr_ut.c | ||
Makefile |