Whamcloud - gitweb
LU-16106 lnet: allow direct messages regardless of peer NI status 29/48529/3
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Mon, 12 Sep 2022 20:50:07 +0000 (13:50 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 26 Sep 2022 16:57:47 +0000 (16:57 +0000)
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.

Lustre-commit: 4c6d1491d1df078a4477b3fcfeddadf3d1fd7239
Lustre-change: https://review.whamcloud.com/c/48355

Test-Parameters: trivial
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I36fa60e37ef4f47c82c69855c9b0b80bad8a36f4
Signed-off-by: Gian-Carlo DeFazio <defazio1@llnl.gov>
Reviewed-on: https://review.whamcloud.com/48529
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-move.c

index 9aae6ac..5c50c9e 100644 (file)
@@ -813,6 +813,10 @@ lnet_peer_alive_locked(struct lnet_ni *ni, struct lnet_peer_ni *lpni,
        if (lnet_msg_is_response(msg))
                return 1;
 
+       /* always send non-routed messages */
+       if (!msg->msg_routing)
+               return 1;
+
        if (!lnet_is_peer_deadline_passed(lpni, now))
                return true;