Spdk/test/nvme
yidong0635 1ad140676e test/aer: Complete requests before detaching.
The failed stack:
The calling processes:
	spdk_nvme_detach_async->nvme_ctrlr_detach_async->
	nvme_ctrlr_get_ref_count->nvme_ctrlr_proc_put_ref->
	nvme_ctrlr_remove_inactive_proc->nvme_ctrlr_get_current_process->
	nvme_ctrlr_remove_process

The proc->active_reqs list processing steps:
	spdk_nvme_ctrlr_process_admin_completions->
	spdk_nvme_qpair_process_completions->
	nvme_transport_qpair_process_completions->
	nvme_pcie_qpair_process_completions->
		*nvme_pcie_qpair_complete_tracker
		*nvme_pcie_qpair_insert_pending_admin_request
	and
		*nvme_pcie_qpair_complete_pending_admin_request
Issue assert:
	assert(STAILQ_EMPTY(&proc->active_reqs));
The assert means there are outstanding active requests in
proc->active_reqs list.

According the test app's coding style, it needs to foreach the dev and
complete the outstanding commands before spdk_nvme_detach_async
especially  it launched spdk_nvme_ctrlr_register_aer_callback .

Bring the aer tests back, to check it.

Fixes issue #2674.

Signed-off-by: yidong0635 <dongx.yi@intel.com>
Change-Id: Ic0d3946f8c8743155cf3067aea1c9b4676748d2f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14433
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2022-09-12 07:25:41 +00:00
..
aer test/aer: Complete requests before detaching. 2022-09-12 07:25:41 +00:00
boot_partition check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
cmb test/nvme: Add basic test covering cmb_copy functionality 2021-07-20 07:59:43 +00:00
compliance autotest_common.sh: change rpc_py to rpc_cmd 2022-09-01 11:15:03 +00:00
connect_stress usage: Add ] for [-G enable debug logging 2022-09-06 07:16:32 +00:00
cuse check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
e2edp check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
err_injection check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
fused_ordering usage: Add ] for [-G enable debug logging 2022-09-06 07:16:32 +00:00
overhead usage: Add ] for [-G enable debug logging 2022-09-06 07:16:32 +00:00
perf test/nvme_perf: wait longer for discovering bdevs 2022-05-19 08:24:09 +00:00
reserve check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
reset test/reset: Remove unused usage. 2022-08-08 13:48:49 +00:00
sgl check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
simple_copy check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
startup check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
xnvme test/xnvme: Add simple test covering xnvme 2022-08-29 11:40:08 +00:00
zns test/nvme/zns: Fix jq filter 2021-12-08 08:06:36 +00:00
hw_hotplug.sh hw_hotplug: remove log.txt before exiting script 2022-06-01 08:58:15 +00:00
Makefile test: remove nvme deallocated_value test 2022-08-18 08:35:02 +00:00
nvme_bp.sh test/nvme: Add test application to verify Boot Partition Read / Write support 2021-09-07 07:34:09 +00:00
nvme_opal.sh autotest_common.sh: change rpc_py to rpc_cmd 2022-09-01 11:15:03 +00:00
nvme_pmr.sh examples/pmr_persistence: Add PMR example application 2021-04-22 20:10:21 +00:00
nvme_rpc_timeouts.sh test/nvme: A simple test confirming we can change nvme timeout settings via rpc 2021-07-14 09:15:20 +00:00
nvme_rpc.sh build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
nvme_scc.sh test/nvme: Add test application to verify Simple Copy Command support 2021-05-18 12:43:24 +00:00
nvme.sh test/aer: Complete requests before detaching. 2022-09-12 07:25:41 +00:00
sw_hotplug.sh hotplug: add new software hotplug test 2022-09-01 11:15:03 +00:00