@@ -1671,8 +1671,7 @@ bool lnet_router_checker_active(void)
CDEBUG(D_NET, "%s notifying %s: %s\n",
!ni ? "userspace" : libcfs_nid2str(ni->ni_nid),
- libcfs_nid2str(nid),
- alive ? "up" : "down");
+ libcfs_nid2str(nid), alive ? "up" : "down");
if (ni &&
LNET_NIDNET(ni->ni_nid) != LNET_NIDNET(nid)) {
@@ -1714,6 +1713,7 @@ bool lnet_router_checker_active(void)
if (alive) {
if (reset) {
+ lpni->lpni_ns_status = LNET_NI_STATUS_UP;
lnet_set_lpni_healthv_locked(lpni,
LNET_MAX_HEALTH_VALUE);
} else {
@@ -1726,6 +1726,8 @@ bool lnet_router_checker_active(void)
(sensitivity) ? sensitivity :
lnet_health_sensitivity);
}
+ } else if (reset) {
+ lpni->lpni_ns_status = LNET_NI_STATUS_DOWN;
}
/* recalculate aliveness */