Whamcloud - gitweb
LU-4349 target: count disconnected exports as stale 85/8785/3
authorMikhail Pershin <mike.pershin@intel.com>
Thu, 9 Jan 2014 16:01:19 +0000 (20:01 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 17 Jan 2014 23:28:05 +0000 (23:28 +0000)
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 <mike.pershin@intel.com>
Change-Id: Id4f2a668dbe8d5cd2fa3d392b7df7b4d67a4265a
Reviewed-on: http://review.whamcloud.com/8785
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/genops.c

index b832620..c9d8a4e 100644 (file)
@@ -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);