Skip to content

Commit

Permalink
Merge pull request #13716 from Adirl/move_counter
Browse files Browse the repository at this point in the history
msg/async/rdma: move active_queue_pairs perf counter dec to polling

Reviewed-by: Haomai Wang <haomai@xsky.com>
  • Loading branch information
yuyuyu101 committed Mar 1, 2017
2 parents 2bcd9d7 + b364d24 commit 3955cac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/msg/async/rdma/RDMAConnectedSocketImpl.cc
Expand Up @@ -42,7 +42,6 @@ RDMAConnectedSocketImpl::RDMAConnectedSocketImpl(CephContext *cct, Infiniband* i
RDMAConnectedSocketImpl::~RDMAConnectedSocketImpl()
{
ldout(cct, 20) << __func__ << " destruct." << dendl;
dispatcher->perf_logger->dec(l_msgr_rdma_active_queue_pair);
cleanup();
worker->remove_pending_conn(this);
dispatcher->erase_qpn(my_msg.qpn);
Expand Down
1 change: 1 addition & 0 deletions src/msg/async/rdma/RDMAStack.cc
Expand Up @@ -146,6 +146,7 @@ void RDMADispatcher::polling()
while (!dead_queue_pairs.empty()) {
ldout(cct, 10) << __func__ << " finally delete qp=" << dead_queue_pairs.back() << dendl;
delete dead_queue_pairs.back();
perf_logger->dec(l_msgr_rdma_active_queue_pair);
dead_queue_pairs.pop_back();
}
}
Expand Down

0 comments on commit 3955cac

Please sign in to comment.