From: Changcheng Liu Date: Tue, 21 May 2019 01:54:36 +0000 (+0800) Subject: msg/async/rdma: correct receive queue length info X-Git-Tag: v15.1.0~1781^2~37 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=175d52ac293d2e53c02e874bd605284444a1a20c;p=ceph-ci.git msg/async/rdma: correct receive queue length info It will hit below misleading log without this patch: Infiniband init requested receive queue length 4095 is too big. Setting 4095 Signed-off-by: Changcheng Liu --- diff --git a/src/msg/async/rdma/Infiniband.cc b/src/msg/async/rdma/Infiniband.cc index 38851c300ac..e920d300ae3 100644 --- a/src/msg/async/rdma/Infiniband.cc +++ b/src/msg/async/rdma/Infiniband.cc @@ -921,11 +921,9 @@ void Infiniband::init() rx_queue_len = device->device_attr.max_qp_wr; if (rx_queue_len > cct->_conf->ms_async_rdma_receive_queue_len) { rx_queue_len = cct->_conf->ms_async_rdma_receive_queue_len; - ldout(cct, 1) << __func__ << " receive queue length is " << rx_queue_len << " receive buffers" << dendl; + ldout(cct, 1) << __func__ << " assigning: " << rx_queue_len << " receive buffers" << dendl; } else { - ldout(cct, 0) << __func__ << " requested receive queue length " << - cct->_conf->ms_async_rdma_receive_queue_len << - " is too big. Setting " << rx_queue_len << dendl; + ldout(cct, 0) << __func__ << " using the max allowed receive buffers: " << rx_queue_len << dendl; } // check for the misconfiguration