nvmf: Remove nvmf_drain_cq
It isn't actually necessary to drain the cq before destroying it. Change-Id: I6f77ae578176a14b5de935274a14cfd165229ec5 Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
3a4c101b2d
commit
8ff733aeed
@ -307,19 +307,6 @@ alloc_rdma_req(struct spdk_nvmf_conn *conn)
|
||||
return rdma_req;
|
||||
}
|
||||
|
||||
static void
|
||||
nvmf_drain_cq(struct spdk_nvmf_conn *conn)
|
||||
{
|
||||
struct spdk_nvmf_rdma_conn *rdma_conn = get_rdma_conn(conn);
|
||||
struct ibv_wc wc;
|
||||
|
||||
/* drain the cq before destruction */
|
||||
while (ibv_poll_cq(rdma_conn->cq, 1, &wc) > 0) {
|
||||
//ibv_ack_cq_events(conn->cq, 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
nvmf_rdma_conn_cleanup(struct spdk_nvmf_conn *conn)
|
||||
{
|
||||
@ -332,7 +319,6 @@ nvmf_rdma_conn_cleanup(struct spdk_nvmf_conn *conn)
|
||||
|
||||
spdk_nvmf_rdma_free_reqs(conn);
|
||||
|
||||
nvmf_drain_cq(conn);
|
||||
rc = ibv_destroy_cq(rdma_conn->cq);
|
||||
if (rc) {
|
||||
SPDK_ERRLOG("ibv_destroy_cq error\n");
|
||||
|
Loading…
Reference in New Issue
Block a user