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: Changpeng 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: 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
5c8f369a41
commit
d9e865a885
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user