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/incore.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/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index 24cd55f60e60..892ac37de8ae 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h | |||
@@ -163,7 +163,6 @@ struct gfs2_glock_operations { | |||
163 | int (*go_dump)(struct seq_file *seq, const struct gfs2_glock *gl); | 163 | int (*go_dump)(struct seq_file *seq, const struct gfs2_glock *gl); |
164 | void (*go_callback) (struct gfs2_glock *gl); | 164 | void (*go_callback) (struct gfs2_glock *gl); |
165 | const int go_type; | 165 | const int go_type; |
166 | const unsigned long go_min_hold_time; | ||
167 | const unsigned long go_flags; | 166 | const unsigned long go_flags; |
168 | #define GLOF_ASPACE 1 | 167 | #define GLOF_ASPACE 1 |
169 | }; | 168 | }; |
@@ -221,6 +220,7 @@ struct gfs2_glock { | |||
221 | 220 | ||
222 | unsigned int gl_hash; | 221 | unsigned int gl_hash; |
223 | unsigned long gl_demote_time; /* time of first demote request */ | 222 | unsigned long gl_demote_time; /* time of first demote request */ |
223 | long gl_hold_time; | ||
224 | struct list_head gl_holders; | 224 | struct list_head gl_holders; |
225 | 225 | ||
226 | const struct gfs2_glock_operations *gl_ops; | 226 | const struct gfs2_glock_operations *gl_ops; |