summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.h
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2011-06-15 11:41:48 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2011-07-15 09:32:11 +0100
commit7cf8dcd3b68a760d66fbc7f0d75d3fbb8f21775d (patch)
treef529dace79c044e6128e9cf283a5c1a584fed5db /fs/gfs2/glock.h
parent17d539f0499fa2c0321b7c260831cca2bb36d119 (diff)
downloadblackbird-op-linux-7cf8dcd3b68a760d66fbc7f0d75d3fbb8f21775d.tar.gz
blackbird-op-linux-7cf8dcd3b68a760d66fbc7f0d75d3fbb8f21775d.zip
GFS2: Automatically adjust glock min hold time
This patch is a performance improvement for GFS2 in a clustered environment. It makes the glock hold time self-adjusting. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.h')
-rw-r--r--fs/gfs2/glock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/gfs2/glock.h b/fs/gfs2/glock.h
index 6b2f757b9281..66707118af25 100644
--- a/fs/gfs2/glock.h
+++ b/fs/gfs2/glock.h
@@ -113,6 +113,12 @@ enum {
#define GLR_TRYFAILED 13
+#define GL_GLOCK_MAX_HOLD (long)(HZ / 5)
+#define GL_GLOCK_DFT_HOLD (long)(HZ / 5)
+#define GL_GLOCK_MIN_HOLD (long)(10)
+#define GL_GLOCK_HOLD_INCR (long)(HZ / 20)
+#define GL_GLOCK_HOLD_DECR (long)(HZ / 40)
+
struct lm_lockops {
const char *lm_proto_name;
int (*lm_mount) (struct gfs2_sbd *sdp, const char *fsname);
OpenPOWER on IntegriCloud