@@ -108,11 +108,11 @@
{
bool update = false;
- if (ni->ni_status && ni->ni_status->ns_status != status) {
+ if (ni->ni_status && *ni->ni_status != status) {
CDEBUG(D_NET, "ni %s status changed from %#x to %#x\n",
libcfs_nidstr(&ni->ni_nid),
- ni->ni_status->ns_status, status);
- ni->ni_status->ns_status = status;
+ *ni->ni_status, status);
+ *ni->ni_status = status;
update = true;
}
@@ -128,7 +128,7 @@
else if (atomic_read(&ni->ni_fatal_error_on))
return LNET_NI_STATUS_DOWN;
else if (ni->ni_status)
- return ni->ni_status->ns_status;
+ return *ni->ni_status;
else
return LNET_NI_STATUS_UP;
}
@@ -500,7 +500,7 @@ struct lnet_ni {
struct lnet_net *ni_net;
/* my health status */
- struct lnet_ni_status *ni_status;
+ u32 *ni_status;
/* NI FSM. Protected by lnet_ni_lock() */
enum lnet_ni_state ni_state;
@@ -1967,7 +1967,7 @@ struct lnet_ping_buffer *
lnet_ni_lock(ni);
ns->ns_status = lnet_ni_get_status_locked(ni);
- ni->ni_status = ns;
+ ni->ni_status = &ns->ns_status;
lnet_ni_unlock(ni);
i++;
@@ -1082,7 +1082,7 @@ int lnet_get_rtr_pool_cfg(int cpt, struct lnet_ioctl_pool_cfg *pool_cfg)
*/
if (atomic_read(&ni->ni_fatal_error_on) &&
ni->ni_status &&
- ni->ni_status->ns_status != LNET_NI_STATUS_DOWN &&
+ *ni->ni_status != LNET_NI_STATUS_DOWN &&
lnet_ni_set_status(ni, LNET_NI_STATUS_DOWN))
push = true;
}