From: yury Date: Tue, 11 Sep 2007 11:15:27 +0000 (+0000) Subject: - zero out GS, GR and CR for client pools also in recalc. X-Git-Tag: v1_8_0_110~1242 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=bd067af3b12ee8277fc50596295fc372995ebf52;p=fs%2Flustre-release.git - zero out GS, GR and CR for client pools also in recalc. --- diff --git a/lustre/ldlm/ldlm_pool.c b/lustre/ldlm/ldlm_pool.c index e609571..17531e2 100644 --- a/lustre/ldlm/ldlm_pool.c +++ b/lustre/ldlm/ldlm_pool.c @@ -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)