Skip to content

Commit 536f48e

Browse files
author
Andreas Gruenbacher
committed
gfs: Use fixed GL_GLOCK_MIN_HOLD time
GL_GLOCK_MIN_HOLD represents the minimum time (in jiffies) that a glock should be held before being eligible for release. It is currently defined as 10, meaning that the duration depends on the timer interrupt frequency (CONFIG_HZ). Change that time to a constant 10ms independent of CONFIG_HZ. On CONFIG_HZ=1000 systems, the value remains the same. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent c45fefe commit 536f48e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/gfs2/glock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ enum {
126126

127127
#define GL_GLOCK_MAX_HOLD (long)(HZ / 5)
128128
#define GL_GLOCK_DFT_HOLD (long)(HZ / 5)
129-
#define GL_GLOCK_MIN_HOLD (long)(10)
129+
#define GL_GLOCK_MIN_HOLD (long)(HZ / 100)
130130
#define GL_GLOCK_HOLD_INCR (long)(HZ / 20)
131131
#define GL_GLOCK_HOLD_DECR (long)(HZ / 40)
132132

0 commit comments

Comments
 (0)