Merge pull request #13412 from yuyuyu101/wip-rdma-log

msg/async/rdma: add log to show correct destruct queuepair

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-02-15 12:09:03 -06:00 committed by GitHub
commit 4f94a6e682
2 changed files with 4 additions and 1 deletions

View File

@ -961,8 +961,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));
}
}
/**

View File

@ -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();