nvmf: use nvme print completion

Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com>
Change-Id: If814edb3c99a7ed9f1800a634f293d3645884457
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3241
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Jacek Kalwas 2020-07-09 11:54:27 +02:00 committed by Tomasz Zawadzki
parent afefd815ca
commit 81717da169
3 changed files with 5 additions and 3 deletions

View File

@ -2928,9 +2928,9 @@ _nvmf_request_complete(void *ctx)
sgroup = nvmf_subsystem_pg_from_connect_cmd(req);
}
SPDK_DEBUGLOG(SPDK_LOG_NVMF,
"cpl: cdw0=0x%08x sct=0x%01x sc=0x%02x cid=0x%04x\n",
rsp->cdw0, rsp->status.sct, rsp->status.sc, rsp->cid);
if (SPDK_DEBUGLOG_FLAG_ENABLED("nvmf")) {
spdk_nvme_print_completion(qpair->qid, rsp);
}
TAILQ_REMOVE(&qpair->outstanding, req, link);
if (nvmf_transport_req_complete(req)) {

View File

@ -183,6 +183,7 @@ DEFINE_STUB_V(nvmf_transport_qpair_abort_request,
(struct spdk_nvmf_qpair *qpair, struct spdk_nvmf_request *req));
DEFINE_STUB_V(spdk_nvme_print_command, (uint16_t qid, struct spdk_nvme_cmd *cmd));
DEFINE_STUB_V(spdk_nvme_print_completion, (uint16_t qid, struct spdk_nvme_cpl *cpl));
int
spdk_nvmf_qpair_disconnect(struct spdk_nvmf_qpair *qpair, nvmf_qpair_disconnect_cb cb_fn, void *ctx)

View File

@ -210,6 +210,7 @@ DEFINE_STUB_V(nvmf_transport_qpair_abort_request,
(struct spdk_nvmf_qpair *qpair, struct spdk_nvmf_request *req));
DEFINE_STUB_V(spdk_nvme_print_command, (uint16_t qid, struct spdk_nvme_cmd *cmd));
DEFINE_STUB_V(spdk_nvme_print_completion, (uint16_t qid, struct spdk_nvme_cpl *cpl));
struct spdk_trace_histories *g_trace_histories;