From 24294b843f79a1167f19d230ff1ab5c1a5cd88e7 Mon Sep 17 00:00:00 2001 From: Amir Shehata Date: Tue, 21 May 2019 13:44:58 -0700 Subject: [PATCH] LU-12279 lnet: use number of wrs to calculate CQEs Using concurrent sends to calculate the number of CQEs results in a small number of CQEs which exposes an issue where under failure scenarios, example when a node reboots, there wouldn't be enough CQEs available leading to IB_EVENT_QP_FATAL Fixes: 83e45ead69ba ("LU-11931 lnd: bring back concurrent_sends") Signed-off-by: Amir Shehata Change-Id: I6e2be079e11622b83fe3fb4fdb695f5a2672c9ac Reviewed-on: https://review.whamcloud.com/34945 Tested-by: Jenkins Reviewed-by: Sonia Sharma Tested-by: Maloo Reviewed-by: Andreas Dilger --- lnet/klnds/o2iblnd/o2iblnd.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lnet/klnds/o2iblnd/o2iblnd.h b/lnet/klnds/o2iblnd/o2iblnd.h index 28d4acf..111133c 100644 --- a/lnet/klnds/o2iblnd/o2iblnd.h +++ b/lnet/klnds/o2iblnd/o2iblnd.h @@ -158,9 +158,7 @@ extern struct kib_tunables kiblnd_tunables; #define IBLND_RECV_WRS(c) IBLND_RX_MSGS(c) /* 2 = LNet msg + Transfer chain */ -#define IBLND_CQ_ENTRIES(c) \ - (IBLND_RECV_WRS(c) + 2 * kiblnd_concurrent_sends(c->ibc_version, \ - c->ibc_peer->ibp_ni)) +#define IBLND_CQ_ENTRIES(c) (IBLND_RECV_WRS(c) + kiblnd_send_wrs(c)) struct kib_hca_dev; -- 1.8.3.1