Commit d9e865a8 authored by Changpeng Liu's avatar Changpeng Liu Committed by Jim Harris
Browse files

nvme: report SQ deletion code to outstanding admin requests



RDMA transport will report SPDK_NVME_SC_ABORTED_POWER_LOSS code
when fail the admin queue, however, SPDK_NVME_SC_ABORTED_SQ_DELETION
makes more sense here, because we know we are going to shutdown
the controller.

Fix issue #568.

Change-Id: I31da095ec92c06079511d89cc2743654ba2c001b
Signed-off-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/c/440132


Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 5c8f369a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1585,8 +1585,7 @@ nvme_rdma_qpair_fail(struct spdk_nvme_qpair *qpair)
	struct spdk_nvme_cpl cpl;
	struct nvme_rdma_qpair *rqpair = nvme_rdma_qpair(qpair);

	/* Call it power loss since we don't know what happened, but the controller is gone. */
	cpl.status.sc = SPDK_NVME_SC_ABORTED_POWER_LOSS;
	cpl.status.sc = SPDK_NVME_SC_ABORTED_SQ_DELETION;
	cpl.status.sct = SPDK_NVME_SCT_GENERIC;

	TAILQ_FOREACH_SAFE(rdma_req, &rqpair->outstanding_reqs, link, tmp) {