Spdk/test/unit/lib/nvmf
Alexey Marchuk 1c5444d623 nvmf: Queue Connect command when subsystem is paused
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>
2020-04-01 10:22:25 +00:00
..
ctrlr_bdev.c nvmf: add const to nqn getters 2020-02-26 09:27:11 +00:00
ctrlr_discovery.c nvmf: Add a transport notification when listeners are associated with 2020-03-10 09:12:29 +00:00
ctrlr.c nvmf: Queue Connect command when subsystem is paused 2020-04-01 10:22:25 +00:00
fc_ls.c nvmf/fc: Fix compilation errors in FC ut 2020-01-22 13:54:34 +00:00
fc.c lib/nvmf: Make spdk_nvmf_poll_group_destroy() asynchronous 2020-03-17 08:49:00 +00:00
rdma.c lib/nvmf: enable pluggable NVMe-oF transports. 2020-01-16 09:10:38 +00:00
subsystem.c nvmf: Make spdk_nvmf_tgt_listen synchronous again 2020-03-06 10:29:45 +00:00
tcp.c Revert "nvme/tcp: Change hdr in nvme_tcp_pdu to pointer" 2020-03-17 08:23:07 +00:00
Makefile NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00