From 175d52ac293d2e53c02e874bd605284444a1a20c Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Tue, 21 May 2019 09:54:36 +0800 Subject: [PATCH] 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 --- src/msg/async/rdma/Infiniband.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.39.5