[lustre-devel] [PATCH 288/622] lnet: use number of wrs to calculate CQEs

James Simmons jsimmons at infradead.org
Thu Feb 27 13:12:36 PST 2020


From: Amir Shehata <ashehata at whamcloud.com>

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: b61010ddf672 ("lnet: lnd: bring back concurrent_sends")
WC-bug-id: https://jira.whamcloud.com/browse/LU-12279
Lustre-commit: 24294b843f79 ("LU-12279 lnet: use number of wrs to calculate CQEs")
Signed-off-by: Amir Shehata <ashehata at whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34945
Reviewed-by: Sonia Sharma <sharmaso at whamcloud.com>
Reviewed-by: Andreas Dilger <adilger at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
 net/lnet/klnds/o2iblnd/o2iblnd.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/net/lnet/klnds/o2iblnd/o2iblnd.h b/net/lnet/klnds/o2iblnd/o2iblnd.h
index eb80d5e..2f7ca52 100644
--- a/net/lnet/klnds/o2iblnd/o2iblnd.h
+++ b/net/lnet/klnds/o2iblnd/o2iblnd.h
@@ -136,9 +136,7 @@ struct kib_tunables {
 /* WRs and CQEs (per connection) */
 #define IBLND_RECV_WRS(c)	IBLND_RX_MSGS(c)
 
-#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



More information about the lustre-devel mailing list