@@ -723,16 +723,18 @@ static int proc_lnet_nis(struct ctl_table *table, int write,
if (the_lnet.ln_routing)
last_alive = now - ni->ni_last_alive;
- /* @lo forever alive */
- if (ni->ni_net->net_lnd->lnd_type == LOLND)
- last_alive = 0;
-
lnet_ni_lock(ni);
LASSERT(ni->ni_status);
stat = (ni->ni_status->ns_status ==
LNET_NI_STATUS_UP) ? "up" : "down";
lnet_ni_unlock(ni);
+ /* @lo forever alive */
+ if (ni->ni_net->net_lnd->lnd_type == LOLND) {
+ last_alive = 0;
+ stat = "up";
+ }
+
/*
* we actually output credits information for
* TX queue of each partition