From dd9b9c821c52c6912157a9a6a3f31e354fed9c55 Mon Sep 17 00:00:00 2001 From: Mikhail Pershin Date: Thu, 9 Jan 2014 20:01:19 +0400 Subject: [PATCH] LU-4349 target: count disconnected exports as stale If export is disconnected during recovery then stale client counter need to be increased. Test-Parameters: envdefinitions=SLOW=yes testlist=conf-sanity,conf-sanity,conf-sanity,conf-sanity,conf-sanity Signed-off-by: Mikhail Pershin Change-Id: Id4f2a668dbe8d5cd2fa3d392b7df7b4d67a4265a Reviewed-on: http://review.whamcloud.com/8785 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo Reviewed-by: wangdi Reviewed-by: Oleg Drokin --- lustre/obdclass/genops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index b832620..c9d8a4e 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -1191,8 +1191,7 @@ void class_export_recovery_cleanup(struct obd_export *exp) /* if called during recovery then should update * obd_stale_clients counter, * lightweight exports are not counted */ - if (exp->exp_failed && - (exp_connect_flags(exp) & OBD_CONNECT_LIGHTWEIGHT) == 0) + if ((exp_connect_flags(exp) & OBD_CONNECT_LIGHTWEIGHT) == 0) exp->exp_obd->obd_stale_clients++; } spin_unlock(&obd->obd_recovery_task_lock); -- 1.8.3.1