From 1443374611c2d1b56e2b641b7d13aa3b5fba8815 Mon Sep 17 00:00:00 2001 From: Chris Horn Date: Thu, 12 Mar 2015 17:39:17 -0500 Subject: [PATCH] LU-5733 lnet: Use lnet_is_route_alive for router aliveness lctl show_route and lctl route_list will output router aliveness information via lnet_get_route(). lnet_get_route() should use the lnet_is_route_alive() function, introduced in e8a1124 http://review.whamcloud.com/7857, to determine route aliveness. Signed-off-by: Chris Horn Change-Id: Ie57aebeb6b4c80a3b89ed72fc6acbccbbd321be1 Reviewed-on: http://review.whamcloud.com/14055 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Amir Shehata Reviewed-by: Oleg Drokin --- lnet/lnet/router.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lnet/lnet/router.c b/lnet/lnet/router.c index e7eb4c9..1c78c37 100644 --- a/lnet/lnet/router.c +++ b/lnet/lnet/router.c @@ -613,9 +613,7 @@ lnet_get_route(int idx, __u32 *net, __u32 *hops, *hops = route->lr_hops; *priority = route->lr_priority; *gateway = route->lr_gateway->lp_nid; - *alive = - route->lr_gateway->lp_alive && - !route->lr_downis; + *alive = lnet_is_route_alive(route); lnet_net_unlock(cpt); return 0; } -- 1.8.3.1