Spdk/test
Seth Howell ec6de131f7 nvme: don't disconnect qpairs from admin thread.
Disconnecting qpairs from the admin thread during a reset led to an
inevitable race with the data thread. QP related memory is freed during
the disconnect and cannot be touched from the other threads.

The only way to fix this is to force the qpair disconnect onto the
data thread.

This requires a small change in the way that resets are handled for
pcie. Please see the code in reset.c for that change.

fixes: bb01a089

Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/472749 (master)

(cherry picked from commit 13f30a254e)
Change-Id: I8a39e444c7cbbe85fafca42ffd040e929721ce95
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/472960
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Seth Howell <seth.howell@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-10-31 19:26:02 +00:00
..
app configure: add --with-fuse option 2019-10-10 16:20:46 +00:00
bdev nvme: allow setting of completion queue CDW0 2019-10-24 18:02:38 +00:00
blobfs blobfs: add blobfs_mount RPC as FUSE 2019-10-15 16:25:09 +00:00
blobstore test: Shellcheck - correct rule: Use a ( subshell ) to avoid having to cd back 2019-10-24 17:36:52 +00:00
common lib/nvme: nvme character device tests 2019-10-25 09:07:51 +00:00
compress test/compress: Wait for bdevs to be created 2019-10-09 14:39:26 +00:00
config_converter rpc: Rename construct_vhost_blk_controller to vhost_create_blk_controller 2019-10-10 16:19:56 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
env test/mem_callbacks: Fix compilation on ARM 2019-10-24 19:21:06 +00:00
event notify: add notification library 2019-03-29 21:15:14 +00:00
ftl test: Shellcheck - correct rule: Useless echo 2019-10-16 15:51:31 +00:00
fuzz rpc: Rename construct_vhost_blk_controller to vhost_create_blk_controller 2019-10-10 16:19:56 +00:00
ioat test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
iscsi_tgt rpc: Rename delete_nvme_controller to bdev_nvme_detach_controller 2019-10-10 16:19:33 +00:00
json_config test: Shellcheck - correct rule: Useless echo? 2019-10-24 17:36:52 +00:00
lvol rpc: Rename stop_nbd_disk to nbd_stop_disk 2019-09-19 20:56:35 +00:00
make test/make: add ignored libs to check_so_deps.sh 2019-09-09 22:15:24 +00:00
nvme lib/nvme: nvme character device tests 2019-10-25 09:07:51 +00:00
nvmf test/nvmf: add a test case for trid failover. 2019-10-24 23:46:39 +00:00
ocf test: Shellcheck - correct rule "Remove surrounding $()" 2019-10-07 11:29:29 +00:00
openstack RPC: rename rpc get_bdevs to bdev_get_bdevs 2019-09-13 22:39:15 +00:00
pmem test: Shellcheck - apply rule SC2181 2019-10-08 15:49:13 +00:00
rpc_client jsonrpc: tolerate null json value for parameters in json-rpc call 2019-07-26 19:30:57 +00:00
spdkcli test/rbd: Fix some issues in rbd.sh. 2019-10-24 17:12:32 +00:00
unit nvme: don't disconnect qpairs from admin thread. 2019-10-31 19:26:02 +00:00
vhost test: Shellcheck - correct rule: Use "${var:?}"\ 2019-10-24 17:36:52 +00:00
vmd test/vmd: return zero after sucessful test run 2019-10-15 16:37:40 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00