diff options
author | Bob Peterson <rpeterso@redhat.com> | 2014-08-20 12:44:45 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-08-21 10:22:52 +0100 |
commit | 2ddfbdd6848d496d8088b28992d257fd02e58c9d (patch) | |
tree | 58ba5b778b6cb26bcafe52fb7034480a4c68af45 /fs/gfs2/inode.c | |
parent | b650738cd093a9f9e9551db9ce5cd68acd842dc0 (diff) | |
download | op-kernel-dev-2ddfbdd6848d496d8088b28992d257fd02e58c9d.zip op-kernel-dev-2ddfbdd6848d496d8088b28992d257fd02e58c9d.tar.gz |
GFS2: Request demote when a "try" flock fails
This patch changes the flock code so that it uses the TRY_1CB flag
instead of the TRY flag on the first attempt. That forces any holding
nodes to issue a dlm callback, which requests a demote of the glock.
Then, if the "try" failed, it sleeps a small amount of time for the
demote to occur. Then it tries again, for an increasing amount of time.
Subsequent attempts to gain the "try" lock don't use "_1CB" so that
only one callback is issued.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
0 files changed, 0 insertions, 0 deletions