Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8f35f6
)
- zero out GS, GR and CR for client pools also in recalc.
author
yury
<yury>
Tue, 11 Sep 2007 11:15:27 +0000
(11:15 +0000)
committer
yury
<yury>
Tue, 11 Sep 2007 11:15:27 +0000
(11:15 +0000)
lustre/ldlm/ldlm_pool.c
patch
|
blob
|
history
diff --git
a/lustre/ldlm/ldlm_pool.c
b/lustre/ldlm/ldlm_pool.c
index
e609571
..
17531e2
100644
(file)
--- 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)