From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-m1973174.qiye.163.com (mail-m1973174.qiye.163.com [220.197.31.74]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id A4B9D1609B2 for ; Tue, 8 Jul 2025 09:52:27 +0200 (CEST) From: "zhengbing.huang" To: drbd-dev@lists.linbit.com Subject: [PATCH v2] rdma: Modify rdma_conn_param.rnr_retry to 7 Date: Tue, 8 Jul 2025 15:37:17 +0800 Message-ID: <20250708073717.4077291-1-zhengbing.huang@easystack.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , During the sync process, we found that the IB_WC_RNR_RETRY_EXC_ERR error always occurred, and then the connection break. Then when the connection is restored, this error occurs again, enter a loop. When the IB_WC_RNR_RETRY_EXC_ERR error occurs, it indicates that there is no rx_desc at the receive side currently. Then we query that the current rnr_retry value is 0, meane there is no retry. So we modify rnr_retry to 7(max value), and the problem did not occur again. Signed-off-by: zhengbing.huang --- drbd/drbd_transport_rdma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drbd/drbd_transport_rdma.c b/drbd/drbd_transport_rdma.c index 30edfaf96..14392a33b 100644 --- a/drbd/drbd_transport_rdma.c +++ b/drbd/drbd_transport_rdma.c @@ -409,6 +409,7 @@ static struct rdma_conn_param dtr_conn_param = { .responder_resources = 1, .initiator_depth = 1, .retry_count = 10, + .rnr_retry_count = 7, }; static u32 dtr_cm_to_lkey(struct dtr_cm *cm) -- 2.43.0