Spdk/test/unit/lib/nvme
Jim Harris 6c61e733a2 nvme: allocate extra request for fabrics connect
With async connect, we need to avoid the case
where the initiator is sending the icreq, and
meanwhile the application submits enough I/O
such that the request objects are exhausted, leaving
none for the FABRICS/CONNECT command that we need
to send after the icreq is done.

So allocate an extra request, and then use it
when sending the FABRICS/CONNECT command, rather
than trying to pull one from the qpair's STAILQ.

Fixes issue #2371.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11515 (master)

(cherry picked from commit 635d0cbe75)
Change-Id: If42a3fbb3fd9d863ee48cf5cae75a9ba1754c349
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12469
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2022-06-30 13:32:31 -04:00
..
nvme_ctrlr_cmd.c nvme: Do not track a separate active namespace list 2022-06-30 13:32:30 -04:00
nvme_ctrlr_ocssd_cmd.c nvme: Do not track a separate active namespace list 2022-06-30 13:32:30 -04:00
nvme_ctrlr.c ut/nvme_ctrlr: initialize mutex for portability 2022-06-30 13:32:31 -04:00
nvme_cuse.c nvme: Add metadata support to io commands 2022-06-30 13:32:30 -04:00
nvme_fabric.c nvme: allocate extra request for fabrics connect 2022-06-30 13:32:31 -04:00
nvme_io_msg.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_ns_cmd.c UT/NVMe: Fix compilation warnings 2022-06-30 13:32:31 -04:00
nvme_ns_ocssd_cmd.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_ns.c spelling: test 2022-06-30 13:32:28 -04:00
nvme_opal.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_pcie_common.c nvme/pcie: only set qpair state from qpair's thread 2022-06-30 13:32:27 -04:00
nvme_pcie.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_poll_group.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_qpair.c nvme: guard admin qpair error injection queue 2022-06-30 13:32:31 -04:00
nvme_quirks.c test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme_rdma.c Revert "nvme/rdma: Correct qpair disconnect process" 2022-06-30 13:32:31 -04:00
nvme_tcp.c UT/NVMe: Fix compilation warnings 2022-06-30 13:32:31 -04:00
nvme_transport.c nvme: Limit spdk_nvme_poll_group_remove() to use only for disconnected qpairs 2022-06-30 13:32:30 -04:00
nvme.c spelling: test 2022-06-30 13:32:28 -04:00
Makefile test/nvme_opal: build nvme_opal unittest file 2021-06-07 07:24:47 +00:00