From: Hongchao Zhang Date: Sun, 31 May 2020 21:00:01 +0000 (+0800) Subject: LU-13654 target: print info of evicted clients to syslog X-Git-Tag: 2.15.55~78 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=11d98791395eb60e67fd8e68f159352b75536dc7;p=fs%2Flustre-release.git LU-13654 target: print info of evicted clients to syslog During recovery, the information of the evicted clients could be useful for administrator to evaluate the affect of the recovery, the debug log could be not easy to get in this case, then it is better to dump it to syslog. Change-Id: Ib32e10b1bbf12fe65be7862a018144827201e58a Test-Parameters: trivial Signed-off-by: Hongchao Zhang Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/38878 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index fb719bb..1dcd579 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -1572,9 +1572,9 @@ void class_disconnect_stale_exports(struct obd_device *obd, list_move(&exp->exp_obd_chain, &work_list); evicted++; - CDEBUG(D_HA, "%s: disconnect stale client %s@%s\n", - obd->obd_name, exp->exp_client_uuid.uuid, - obd_export_nid2str(exp)); + CWARN("%s: disconnect stale client %s@%s\n", + obd->obd_name, exp->exp_client_uuid.uuid, + obd_export_nid2str(exp)); print_export_data(exp, "EVICTING", 0, D_HA); } spin_unlock(&obd->obd_dev_lock);