]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/gfs2/super.c
[GFS2] Remove local exclusive glock mode
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 22 Jan 2007 17:10:39 +0000 (12:10 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 5 Feb 2007 18:37:20 +0000 (13:37 -0500)
commit1c0f4872dc4bbeb2223a300517099786211fce83
tree21e4c880e68751dabecfc0d77ff226ec6fcb6951
parent6bd9c8c2fb99d1f5af6201db2f063c1d754c230a
[GFS2] Remove local exclusive glock mode

Here is a patch for GFS2 to remove the local exclusive flag. In
the places it was used, mutex's are always held earlier in the
call path, so it appears redundant in the LM_ST_SHARED case.

Also, the GFS2 holders were setting local exclusive in any case where
the requested lock was LM_ST_EXCLUSIVE. So the other places in the glock
code where the flag was tested have been replaced with tests for the
lock state being LM_ST_EXCLUSIVE in order to ensure the logic is the
same as before (i.e. LM_ST_EXCLUSIVE is always locally exclusive as well
as globally exclusive).

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glock.c
fs/gfs2/glock.h
fs/gfs2/glops.c
fs/gfs2/ops_export.c
fs/gfs2/super.c