Spdk/test/unit/lib/nvmf
Konrad Sztyber a50a70ecdf nvmf: abort outstanding zcopy reqs in qpair disconnect
Zero-copy requests are kept on the outstanding queue for the whole
duration of the request - from the initial zcopy_start submission to the
completion of zcopy_end.  This means, that there's a period in which a
request doesn't wait for a completion from the bdev layer, but is still
on the oustanding queue (after zcopy_start callback, before zcopy_end
submit).  If a qpair gets disconnected while a request is in this state,
we need to manually force its completion, as otherwise it might hang
indefinitely (e.g. waiting for host data).

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I53731b8e363b725efa564ca3c7d89b46f5fb2a24
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10793
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
2022-01-12 08:20:11 +00:00
..
ctrlr_bdev.c nvmf: return async/complete status in bdev zcopy operations 2022-01-06 18:53:42 +00:00
ctrlr_discovery.c nvmf: update discovery log when removing hostnqn 2021-12-16 08:52:20 +00:00
ctrlr.c nvmf: make zcopy_end void 2022-01-06 18:53:42 +00:00
fc_ls.c ut/fc : fix fc_ls_ut compilation failure 2021-12-16 08:43:39 +00:00
fc.c nvmf: abort outstanding zcopy reqs in qpair disconnect 2022-01-12 08:20:11 +00:00
nvmf.c nvmf: abort outstanding zcopy reqs in qpair disconnect 2022-01-12 08:20:11 +00:00
rdma.c nvmf: deduplicate transport listen dump opts 2021-09-06 09:53:57 +00:00
subsystem.c nvmf: support static CNTLID 2022-01-06 01:20:32 +00:00
tcp.c nvmf: make zcopy_end void 2022-01-06 18:53:42 +00:00
transport.c test/nvmf/transport: cases for creating polling group 2021-09-22 06:58:51 +00:00
vfio_user.c UT/vfio-user: fix clang-12 compilation error 2021-12-15 04:32:05 +00:00
Makefile test/nvmf: only build and run transport_ut.c when RDMA is enabled 2021-09-01 07:34:37 +00:00