diff options
author | Bob Peterson <rpeterso@redhat.com> | 2011-06-15 11:41:48 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2011-07-15 04:32:11 -0400 |
commit | 7cf8dcd3b68a760d66fbc7f0d75d3fbb8f21775d (patch) | |
tree | f529dace79c044e6128e9cf283a5c1a584fed5db /fs/gfs2/glock.h | |
parent | 17d539f0499fa2c0321b7c260831cca2bb36d119 (diff) |
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.h | 6 |
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 { | |||
113 | 113 | ||
114 | #define GLR_TRYFAILED 13 | 114 | #define GLR_TRYFAILED 13 |
115 | 115 | ||
116 | #define GL_GLOCK_MAX_HOLD (long)(HZ / 5) | ||
117 | #define GL_GLOCK_DFT_HOLD (long)(HZ / 5) | ||
118 | #define GL_GLOCK_MIN_HOLD (long)(10) | ||
119 | #define GL_GLOCK_HOLD_INCR (long)(HZ / 20) | ||
120 | #define GL_GLOCK_HOLD_DECR (long)(HZ / 40) | ||
121 | |||
116 | struct lm_lockops { | 122 | struct lm_lockops { |
117 | const char *lm_proto_name; | 123 | const char *lm_proto_name; |
118 | int (*lm_mount) (struct gfs2_sbd *sdp, const char *fsname); | 124 | int (*lm_mount) (struct gfs2_sbd *sdp, const char *fsname); |