[lustre-devel] [PATCH 22/24] lnet: allow direct messages regardless of peer NI status

James Simmons jsimmons at infradead.org
Sat Sep 17 22:22:12 PDT 2022


From: Serguei Smirnov <ssmirnov at whamcloud.com>

If check_routers_before_use is enabled, the router needs to
be pinged before it is used, which is not possible because
its NIs are assumed to be down at start-up. Don't prevent
discovery of the router in this case.

This change allows non-routed traffic to peer NIs with "down"
status.

WC-bug-id: https://jira.whamcloud.com/browse/LU-16106
Lustre-commit: 3345a8a54e89c342a4ce ("LU-16106 lnet: allow direct messages regardless of peer NI status")
Signed-off-by: Serguei Smirnov <ssmirnov at whamcloud.com>
Reviewed-on: https://review.whamcloud.com/48355
Reviewed-by: Frank Sehr <fsehr at whamcloud.com>
Reviewed-by: Chris Horn <chris.horn at hpe.com>
Reviewed-by: Oleg Drokin <green at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
 net/lnet/lnet/lib-move.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/net/lnet/lnet/lib-move.c b/net/lnet/lnet/lib-move.c
index 3c9602e..a8a5ddb 100644
--- a/net/lnet/lnet/lib-move.c
+++ b/net/lnet/lnet/lib-move.c
@@ -597,6 +597,10 @@ void lnet_usr_translate_stats(struct lnet_ioctl_element_msg_stats *msg_stats,
 	if (lnet_msg_is_response(msg))
 		return false;
 
+	/* always send non-routed messages */
+	if (!msg->msg_routing)
+		return false;
+
 	/* assume peer_ni is alive as long as we're within the configured
 	 * peer timeout
 	 */
-- 
1.8.3.1



More information about the lustre-devel mailing list