From bd067af3b12ee8277fc50596295fc372995ebf52 Mon Sep 17 00:00:00 2001 From: yury Date: Tue, 11 Sep 2007 11:15:27 +0000 Subject: [PATCH] - zero out GS, GR and CR for client pools also in recalc. --- lustre/ldlm/ldlm_pool.c | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 1.8.3.1