mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:24:39 +01:00
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>
This commit is contained in:
parent
c45fefe3a9
commit
536f48e8bb
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ enum {
|
|||
|
||||
#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_MIN_HOLD (long)(HZ / 100)
|
||||
#define GL_GLOCK_HOLD_INCR (long)(HZ / 20)
|
||||
#define GL_GLOCK_HOLD_DECR (long)(HZ / 40)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue