]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/rdma: correct receive queue length info
authorChangcheng Liu <changcheng.liu@aliyun.com>
Tue, 21 May 2019 01:54:36 +0000 (09:54 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Fri, 23 Aug 2019 02:45:05 +0000 (10:45 +0800)
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 <changcheng.liu@aliyun.com>
src/msg/async/rdma/Infiniband.cc

index 38851c300ac6985a1c3280a07c2ec80f5e53383a..e920d300ae39bd20d2bbfd84d677b39b20ac1e73 100644 (file)
@@ -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