Whamcloud - gitweb
LU-14555 lnet: asym route inconsistency warning
[fs/lustre-release.git] / lnet / lnet / router.c
index d581fa2..28b64ff 100644 (file)
@@ -382,7 +382,8 @@ static inline void
 lnet_check_route_inconsistency(struct lnet_route *route)
 {
        if (!route->lr_single_hop &&
-           (route->lr_hops == 1 || route->lr_hops == LNET_UNDEFINED_HOPS)) {
+           (route->lr_hops == 1 || route->lr_hops == LNET_UNDEFINED_HOPS) &&
+           avoid_asym_router_failure) {
                CWARN("route %s->%s is detected to be multi-hop but hop count is set to %d\n",
                        libcfs_net2str(route->lr_net),
                        libcfs_nidstr(&route->lr_gateway->lp_primary_nid),