nvme/compliance: also delete CQ at last in a test case
For the test case, we only delete the SQ for a queue pair, this will make SPDK NVMe driver not to send delete CQ when shutting down the controller, so here also delete CQ at last. Change-Id: Ibdfb727710ca51524858158edac415e93bb1c1e3 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10528 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
d11601e87f
commit
6bc3a3e630
@ -324,6 +324,20 @@ admin_delete_io_sq_delete_sq_twice(void)
|
||||
CU_ASSERT(s.cpl.status.sct == SPDK_NVME_SCT_COMMAND_SPECIFIC);
|
||||
CU_ASSERT(s.cpl.status.sc == SPDK_NVME_SC_INVALID_QUEUE_IDENTIFIER);
|
||||
|
||||
/* Delete CQ 1, this is valid. */
|
||||
memset(&cmd, 0, sizeof(cmd));
|
||||
cmd.opc = SPDK_NVME_OPC_DELETE_IO_CQ;
|
||||
cmd.cdw10_bits.delete_io_q.qid = 1;
|
||||
|
||||
s.done = false;
|
||||
rc = spdk_nvme_ctrlr_cmd_admin_raw(ctrlr, &cmd, NULL, 0, test_cb, &s);
|
||||
CU_ASSERT(rc == 0);
|
||||
|
||||
wait_for_admin_completion(&s, ctrlr);
|
||||
|
||||
CU_ASSERT(s.cpl.status.sct == SPDK_NVME_SCT_GENERIC);
|
||||
CU_ASSERT(s.cpl.status.sc == SPDK_NVME_SC_SUCCESS);
|
||||
|
||||
spdk_dma_free(buf);
|
||||
spdk_nvme_detach(ctrlr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user