This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: master - dlm_controld/gfs_controld: fix plock rate limiting
- From: David Teigland <teigland at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Thu, 11 Dec 2008 23:46:26 +0000 (UTC)
- Subject: cluster: master - dlm_controld/gfs_controld: fix plock rate limiting
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=1e3b9e7642386349587e8be3ff8c390507a14ed3
Commit: 1e3b9e7642386349587e8be3ff8c390507a14ed3
Parent: b2f8bfa80393e8cafcdb07beddee1d198e3b8785
Author: David Teigland <teigland@redhat.com>
AuthorDate: Thu Dec 11 15:56:05 2008 -0600
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Thu Dec 11 17:43:52 2008 -0600
dlm_controld/gfs_controld: fix plock rate limiting
When the plock rate limiting code enabled locking after disabling
it, it would be immediately disabled again. So, once plocks were
disabled due to the rate limit, they would never be processed again.
Signed-off-by: David Teigland <teigland@redhat.com>
---
group/dlm_controld/plock.c | 1 +
group/gfs_controld/plock.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/group/dlm_controld/plock.c b/group/dlm_controld/plock.c
index 70d425e..a59f5b8 100644
--- a/group/dlm_controld/plock.c
+++ b/group/dlm_controld/plock.c
@@ -1398,6 +1398,7 @@ int limit_plocks(void)
return 2;
}
plock_rate_last = now;
+ plock_read_count++;
}
return 0;
}
diff --git a/group/gfs_controld/plock.c b/group/gfs_controld/plock.c
index 21112d8..345235d 100644
--- a/group/gfs_controld/plock.c
+++ b/group/gfs_controld/plock.c
@@ -1471,6 +1471,7 @@ int limit_plocks(void)
return 2;
}
plock_rate_last = now;
+ plock_read_count++;
}
return 0;
}