From 6016e1d3bc378443aa3c1488a00b5e3b694dcb07 Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Tue, 14 Feb 2017 14:30:38 +0800 Subject: [PATCH] msg/async/rdma: add log to show correct destruct queuepair Signed-off-by: Haomai Wang --- src/msg/async/rdma/Infiniband.cc | 4 +++- src/msg/async/rdma/RDMAConnectedSocketImpl.cc | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/msg/async/rdma/Infiniband.cc b/src/msg/async/rdma/Infiniband.cc index f66bcaddd67..6856b911b22 100644 --- a/src/msg/async/rdma/Infiniband.cc +++ b/src/msg/async/rdma/Infiniband.cc @@ -945,8 +945,10 @@ void Infiniband::gid_to_wire_gid(const union ibv_gid *gid, char wgid[]) Infiniband::QueuePair::~QueuePair() { - if (qp) + if (qp) { + ldout(cct, 20) << __func__ << " destroy qp=" << qp << dendl; assert(!ibv_destroy_qp(qp)); + } } /** diff --git a/src/msg/async/rdma/RDMAConnectedSocketImpl.cc b/src/msg/async/rdma/RDMAConnectedSocketImpl.cc index 45683ee2705..8f852455a63 100644 --- a/src/msg/async/rdma/RDMAConnectedSocketImpl.cc +++ b/src/msg/async/rdma/RDMAConnectedSocketImpl.cc @@ -39,6 +39,7 @@ RDMAConnectedSocketImpl::RDMAConnectedSocketImpl(CephContext *cct, Infiniband* i RDMAConnectedSocketImpl::~RDMAConnectedSocketImpl() { + ldout(cct, 20) << __func__ << " destruct." << dendl; worker->remove_pending_conn(this); dispatcher->erase_qpn(my_msg.qpn); cleanup();