nvmf: don't count RDMA CQ entries
Just return success or failure - the actual count was not used. Change-Id: I26e7c4c6319af444d221d9b0f313fb7071733619 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
10687626e5
commit
2d75d67aa9
@ -1071,7 +1071,6 @@ nvmf_check_rdma_completions(struct spdk_nvmf_conn *conn)
|
|||||||
struct spdk_nvmf_rdma_request *rdma_req;
|
struct spdk_nvmf_rdma_request *rdma_req;
|
||||||
struct spdk_nvmf_request *req;
|
struct spdk_nvmf_request *req;
|
||||||
int rc;
|
int rc;
|
||||||
int cq_count = 0;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < rdma_conn->queue_depth; i++) {
|
for (i = 0; i < rdma_conn->queue_depth; i++) {
|
||||||
@ -1086,8 +1085,6 @@ nvmf_check_rdma_completions(struct spdk_nvmf_conn *conn)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* OK, process the single successful cq event */
|
/* OK, process the single successful cq event */
|
||||||
cq_count += rc;
|
|
||||||
|
|
||||||
if (wc.status) {
|
if (wc.status) {
|
||||||
SPDK_TRACELOG(SPDK_TRACE_RDMA, "CQ completion error status %d (%s), exiting handler\n",
|
SPDK_TRACELOG(SPDK_TRACE_RDMA, "CQ completion error status %d (%s), exiting handler\n",
|
||||||
wc.status, ibv_wc_status_str(wc.status));
|
wc.status, ibv_wc_status_str(wc.status));
|
||||||
@ -1139,7 +1136,8 @@ nvmf_check_rdma_completions(struct spdk_nvmf_conn *conn)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return cq_count;
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user