From 11d98791395eb60e67fd8e68f159352b75536dc7 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Mon, 1 Jun 2020 05:00:01 +0800 Subject: [PATCH] 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 --- lustre/obdclass/genops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 1.8.3.1