Whamcloud - gitweb
LU-15275 lnet: Skip router discovery on send path 84/45684/2
authorChris Horn <chris.horn@hpe.com>
Tue, 30 Nov 2021 16:57:34 +0000 (10:57 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Jan 2022 22:03:40 +0000 (22:03 +0000)
commitc8e74c395d5634dbb0d9d8a86605bb36ab2b8233
tree0ee58ba035e87742caee632f0b8e94dcf777d26e
parente13ed446337273a045c4bbfbb2e3a7d0d48389b6
LU-15275 lnet: Skip router discovery on send path

When the router checker is enabled, routes are regularly marked as out
of date w.r.t. discovery. This can cause upper level messages to be
delayed while the router undergoes discovery. We can avoid delaying
messages by relying on the router checker to initiate discovery of
routers. If we happen to send a message to a router before it has
been discovered then the worst case scenario is that the route is
actually down or we end up utilizing a subset of a multi-rail router's
interfaces. Both situations can be remedied by utilizing the
check_routers_before_use parameter.

Change the logic in lnet_handle_find_routed_path() so that we only
initiate discovery if the alive_router_check_interval is <= 0 (i.e.
router checker pings are disabled).

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: If0332c21f6157117598b7b908fe17f2d2690fc1d
Reviewed-on: https://review.whamcloud.com/45684
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Reviewed-by: Andriy Skulysh <andriy.skulysh@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-move.c