nvmf: call spdk_nvmf_request_complete on error (#123)

Calling spdk_nvmf_request_complete to complete spdk_nvmf_request
causes some fields in completion queue entry not set correctly.
Calling spdk_nvmf_request_complete fixes the problem.
This commit is contained in:
liu-wenhua 2017-02-24 15:12:40 -08:00 committed by Daniel Verkamp
parent 2343b2ce22
commit 0ccb72c6da

View File

@ -1505,7 +1505,7 @@ spdk_nvmf_rdma_poll(struct spdk_nvmf_conn *conn)
}
break;
case SPDK_NVMF_REQUEST_PREP_ERROR:
spdk_nvmf_rdma_request_complete(req);
spdk_nvmf_request_complete(req);
break;
}
break;