27d47b9a10
Reason: Initiator sends the qpair deletion in wrong order. The correct order should be all io qpairs deletion and then the admin qpair deletion. However, nvme perf does not follow this since we did not catch ctrlr + c. If we catch ctrlr + c, we need to use the spdk app framework, or other methods. We should support this in another patch. Morever, to prevent the incorrect behavior causing the coredump of target, we need also consider such case in our NVMe-oF target design. And this patch, can solve this issue, it will defer the admin qpair deletion when there are still active io qpairs. Change-Id: Iec9b88c1d6254f36963c92402ebfe8bd99abaea5 Signed-off-by: Ziye Yang <ziye.yang@intel.com> Reviewed-on: https://review.gerrithub.io/407771 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>