[GFS2] Fix recursive locking in gfs2_permission
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 27 Nov 2006 14:55:28 +0000 (09:55 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 30 Nov 2006 15:36:53 +0000 (10:36 -0500)
Since gfs2_permission may be called either from the VFS (in which case
we need to obtain a shared glock) or from GFS2 (in which case we already
have a glock) we need to test to see whether or not a lock is required.
The original test was buggy due to a potential race. This one should
be safe.

This fixes Red Hat bugzilla #217129

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

No differences found