Spdk/test/unit/lib
Konrad Sztyber 2d8c9c571e nvmf/tcp: delay qpair destruction
This patch adds an extra spdk_thread_send_msg() call to destroy a qpair
to make sure that it isn't freed from the context of a socket write
callback.  Otherwise, spdk_sock_close() won't abort pending requests,
causing their completions to be exected after the qpair is freed.

Fixes #2471

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12332 (master)

(cherry picked from commit 3056c8ac02)
Change-Id: Ia510d5d754baccca1e444afdb10696ab9b58e28b
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12487
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: SPDK CI Jenkins <sys_sgci@intel.com>
2022-06-30 13:32:31 -04:00
..
accel test/accel&rdma: Fix unittest_accel and unittest_nvme_rdma failure 2022-06-30 13:32:31 -04:00
bdev bdev/nvme: Fix namespace comparison 2022-06-30 13:32:31 -04:00
blob lib/blob: do not assume realloc(NULL, 0) returns a not-NULL value 2022-06-30 13:32:29 -04:00
blobfs test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
dma dma: Update memory domain context structure 2022-06-30 13:32:26 -04:00
env_dpdk test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
event scheduler/dynamic: don't adjust tsc too much for very busy cores 2022-06-30 13:32:25 -04:00
ftl spelling: test 2022-06-30 13:32:28 -04:00
idxd idxd: fix issue w/multiple WQ config 2022-06-30 13:32:31 -04:00
init spelling: test 2022-06-30 13:32:28 -04:00
ioat test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
iscsi spelling: test 2022-06-30 13:32:28 -04:00
json spelling: test 2022-06-30 13:32:28 -04:00
jsonrpc spelling: test 2022-06-30 13:32:28 -04:00
log test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
lvol test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
notify test: optimize unit test .gitignore files 2021-08-20 07:29:57 +00:00
nvme test/unit: fix valgrind error for test_nvme_free_request 2022-06-30 13:32:31 -04:00
nvmf nvmf/tcp: delay qpair destruction 2022-06-30 13:32:31 -04:00
reduce spelling: test 2022-06-30 13:32:28 -04:00
rpc ut/rpc: wrap syscalls using spdk.mock.unittest.mk 2022-06-30 13:32:25 -04:00
scsi Lib/iSCSI: add the LUN Resize support 2022-06-30 13:32:31 -04:00
sock spelling: test 2022-06-30 13:32:28 -04:00
thread spelling: test 2022-06-30 13:32:28 -04:00
util spelling: test 2022-06-30 13:32:28 -04:00
vhost lib/vhost: move dev_dirname to rte_vhost_user 2022-06-30 13:32:31 -04:00
json_mock.c ut/json_mock: Add spdk_json_write_string_fmt() 2021-02-09 11:29:53 +00:00
Makefile unittest/rpc: add rpc unittest 2021-09-06 09:55:33 +00:00