+188
−166
Loading
For the purpose to support shared IO CQ feature, we will construct the queue pair data structure at the beginning, and setup SQ/CQ separately in CREATE IO SQ/CQ routine. Previously we will disconnect queue pair when got a DELETE IO CQ command, now we disconnect queue pair when got a DELETE IO SQ command, and in the disconnect completion callback, we will release the IO SQ resources, there is a case that the VM will just RESET/SHUTDOWN controller when IO queue pairs are connected, for this case, we will also try to release CQ resources in the disconnect completion callback. `free_qp` function now is only called when destroying a controller. Change-Id: I45ec679ddb63bdf1feeba5dc2bd39cae3ba4aa89 Signed-off-by:Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10532 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by:
Thanos Makatos <thanos.makatos@nutanix.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>