nvmf/vfio-user: cleanup ADMIN CQ/SQ data structure
Set the SQ/CQ size to 0 so that we will not try to remmap the ADMIN queue pair in the memory region callback before the ADMIN queue pair was enabled. Change-Id: I739a2ec3abcb54b17f31f2bc120312cd02ffeef1 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10531 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
4701614afd
commit
9d7e239f15
@ -1493,6 +1493,10 @@ disable_admin_queue(struct nvmf_vfio_user_ctrlr *ctrlr)
|
||||
assert(ctrlr->qp[0] != NULL);
|
||||
|
||||
unmap_qp(ctrlr->qp[0]);
|
||||
ctrlr->qp[0]->sq.size = 0;
|
||||
ctrlr->qp[0]->sq.head = 0;
|
||||
ctrlr->qp[0]->cq.size = 0;
|
||||
ctrlr->qp[0]->cq.tail = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user