X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lnet%2Flnet%2Flib-msg.c;fp=lnet%2Flnet%2Flib-msg.c;h=e92b5c86eb104a37663f77fb089cfb2c11a89c22;hb=1d94a29dbc018fd00aa1c8a7a7ae343e0c9a4b83;hp=d1d38355ea87f44b5d60adc40e7dc3f46c4e20af;hpb=4577410165641e3756406aca7f9a21c73d1fd630;p=fs%2Flustre-release.git diff --git a/lnet/lnet/lib-msg.c b/lnet/lnet/lib-msg.c index d1d3835..e92b5c8 100644 --- a/lnet/lnet/lib-msg.c +++ b/lnet/lnet/lib-msg.c @@ -838,7 +838,7 @@ lnet_health_check(struct lnet_msg *msg) * increment the local ni health weather we successfully * received or sent a message on it. */ - lnet_inc_healthv(&ni->ni_healthv); + lnet_inc_healthv(&ni->ni_healthv, lnet_health_sensitivity); /* * It's possible msg_txpeer is NULL in the LOLND * case. Only increment the peer's health if we're @@ -858,7 +858,12 @@ lnet_health_check(struct lnet_msg *msg) lnet_set_lpni_healthv_locked(lpni, LNET_MAX_HEALTH_VALUE); } else { - lnet_inc_lpni_healthv_locked(lpni); + __u32 sensitivity = lpni->lpni_peer_net-> + lpn_peer->lp_health_sensitivity; + + lnet_inc_lpni_healthv_locked(lpni, + (sensitivity) ? sensitivity : + lnet_health_sensitivity); } lnet_net_unlock(0); }