Spdk/test
Shuhei Matsumoto cb8aa8abc5 bdev/nvme: Not try freeing qpair when it is NULL, and add test scenario
The API spdk_nvme_ctrlr_free_io_qpair() returns immediately if the
passed qpair is NULL, but calling spdk_nvme_ctrlr_free_io_qpair()
with NULL should be avoided.

This patch cleans up the code to ensure that nvme_ch->qpair is NULL if
disconnected and spdk_nvme_ctrlr_free_io_qpair() is called only if
nvme_ch->qpair is not NULL.

Then add a test scenario that two reset requests were submitted
simultaneously and the first reset request failed and then the second
reset request also failed. This verifies the refactoring done in the
next patch.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Iae461f7f826b0e1a4607a17e528c04a642242d6e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7041
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2021-03-30 11:43:24 +00:00
..
accel_engine accel_engine test: Add the test case for accel_engine. 2021-01-21 15:49:40 +00:00
app lib/iscsi: Pass the range (offset and length) to iscsi_conn_read_data_segment() 2021-02-23 08:52:20 +00:00
bdev lib/bdev: move to spdk_bdev_open_ext() 2021-03-05 08:33:45 +00:00
blobfs rocksdb: Change absolut SPDK path in RocksDB build to relative path 2021-03-09 08:50:27 +00:00
blobstore scheduler: Change main core frequency dynamically 2021-01-22 18:31:25 +00:00
common test/common: remove sed commands in vm_setup.sh 2021-03-29 07:20:50 +00:00
compress script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
config_converter scripts/config_converter: skip sections not present in legacy config 2021-01-15 08:32:10 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
dd test/dd: Lower the number of block size tests 2020-08-20 09:27:21 +00:00
dpdk_memory_utility build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
env env: Register external memory with DPDK 2021-03-24 11:59:59 +00:00
event test/scheduler: application to test behaviour of schedulers 2021-01-22 18:31:25 +00:00
external_code test/external_code: out-of-tree NVMe driver tests 2021-03-09 08:28:22 +00:00
ftl scripts: replace PCI_WHITELIST with PCI_ALLOWED 2020-12-03 09:41:07 +00:00
fuzz test/iscsi: remove VPP tests 2020-08-17 08:19:46 +00:00
ioat build: Example applications build to build/example 2020-06-15 15:27:16 +00:00
iscsi_tgt script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
json_config autotest.sh: call rdma_device_init only for RDMA tests 2021-03-29 07:34:38 +00:00
lvol test/lvol: rename lvol test script 2020-10-20 08:54:53 +00:00
make check_so_deps: Make sure number of processed .so files is updated 2021-03-23 10:08:37 +00:00
nvme test/nvme: fix e2edp tests when md_size > 8 bytes 2021-03-18 13:20:41 +00:00
nvmf test/nvmf: fix non-root mode 2021-03-23 10:03:11 +00:00
ocf ocf/rpc: Add bdev_ocf_set_cache_mode method 2021-03-18 14:39:09 +00:00
openstack test/openstack: retry git clone when failed 2021-03-08 10:48:36 +00:00
pmem build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
rpc build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
rpc_client build: use DEPDIRS variables to build SPDK_LIB_LIST 2020-12-18 09:40:01 +00:00
scheduler test/scheduler: Print minimum supported frequency by given cpu 2021-03-18 13:25:09 +00:00
setup test/setup: Add tests for different block devices' setups 2021-03-29 07:24:14 +00:00
spdkcli autotest.sh: call rdma_device_init only for RDMA tests 2021-03-29 07:34:38 +00:00
unit bdev/nvme: Not try freeing qpair when it is NULL, and add test scenario 2021-03-30 11:43:24 +00:00
vhost test/vhost: add vfio-user option 2021-03-29 07:20:50 +00:00
vmd test: replace VMD_WHITELIST with VMD_ALLOWED 2020-12-03 09:41:07 +00:00
Makefile build: add option to disable building unit tests 2020-03-10 09:12:21 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00