Skip to content
Commit dff52574 authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

GFS2: Fix race relating to glock min-hold time



In the case that a request for a glock arrives right after the
grant reply has arrived, it sometimes means that the gl_tstamp
field hasn't been updated recently enough. The net result is that
the min-hold time for the glock is ignored. If this happens
often enough, it leads to poor performance.

This patch adds an additional test, so that if the reply pending
bit is set on a glock, then it will select the maximum length of
time for the min-hold time, rather than looking at gl_tstamp.

Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 0188d6c5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment