From: Chris Horn Date: Thu, 12 Mar 2015 22:39:17 +0000 (-0500) Subject: LU-5733 lnet: Use lnet_is_route_alive for router aliveness X-Git-Tag: 2.7.62~20 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=1443374611c2d1b56e2b641b7d13aa3b5fba8815;p=fs%2Flustre-release.git 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 --- 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; }