Whamcloud - gitweb
LU-13071 lnet: reduce log severity for health events 18/37718/2
authorAmir Shehata <ashehata@whamcloud.com>
Thu, 12 Dec 2019 19:19:48 +0000 (11:19 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 10 Mar 2020 17:06:00 +0000 (17:06 +0000)
No need to print an error when the health of an interface is
reduced. Changed it to debug level.

Lustre-change: https://review.whamcloud.com/37002
Lustre-commit: 5567aaba1086217e021938e5f9543c640b2d007c

Test-Parameters: trivial
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: Ia60ade12efab732ea4b0388a3803976bf65938ab
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/37718
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
lnet/lnet/lib-msg.c
lnet/lnet/peer.c

index 9206765..55b8d80 100644 (file)
@@ -480,7 +480,7 @@ lnet_handle_local_failure(struct lnet_msg *msg)
         */
        if (list_empty(&local_ni->ni_recovery) &&
            atomic_read(&local_ni->ni_healthv) < LNET_MAX_HEALTH_VALUE) {
-               CERROR("ni %s added to recovery queue. Health = %d\n",
+               CDEBUG(D_NET, "ni %s added to recovery queue. Health = %d\n",
                        libcfs_nid2str(local_ni->ni_nid),
                        atomic_read(&local_ni->ni_healthv));
                list_add_tail(&local_ni->ni_recovery,
index 1ad2fc2..b23bb02 100644 (file)
@@ -3446,7 +3446,7 @@ lnet_peer_ni_add_to_recoveryq_locked(struct lnet_peer_ni *lpni)
 
        if (list_empty(&lpni->lpni_recovery) &&
            atomic_read(&lpni->lpni_healthv) < LNET_MAX_HEALTH_VALUE) {
-               CERROR("lpni %s added to recovery queue. Health = %d\n",
+               CDEBUG(D_NET, "lpni %s added to recovery queue. Health = %d\n",
                        libcfs_nid2str(lpni->lpni_nid),
                        atomic_read(&lpni->lpni_healthv));
                list_add_tail(&lpni->lpni_recovery, &the_lnet.ln_mt_peerNIRecovq);