Whamcloud - gitweb
- zero out GS, GR and CR for client pools also in recalc.
authoryury <yury>
Tue, 11 Sep 2007 11:15:27 +0000 (11:15 +0000)
committeryury <yury>
Tue, 11 Sep 2007 11:15:27 +0000 (11:15 +0000)
lustre/ldlm/ldlm_pool.c

index e609571..17531e2 100644 (file)
@@ -279,6 +279,11 @@ static int ldlm_cli_pool_recalc(struct ldlm_pool *pl)
         grant_rate = atomic_read(&pl->pl_grant_rate);
         cancel_rate = atomic_read(&pl->pl_cancel_rate);
 
+        /* Zero out grant/cancel rates and speed for this T. */
+        atomic_set(&pl->pl_grant_rate, 0);
+        atomic_set(&pl->pl_cancel_rate, 0);
+        atomic_set(&pl->pl_grant_speed, 0);
+
         recalc_interval_sec = cfs_duration_sec(cfs_time_current() -
                                                pl->pl_update_time);
         if (recalc_interval_sec == 0)