GFS2: Extend umount wait coverage to full glock lifetime
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 29 Jan 2010 15:21:27 +0000 (15:21 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 3 Feb 2010 09:56:21 +0000 (09:56 +0000)
commit8f05228ee7c8f409ae3c6f9c3e13d7ccb9c18360
tree34e8cf87485edf4ecb6878ade96704975e5d5bf5
parente402746a945ceb9d0486a8e3d5917c9228fa4404
GFS2: Extend umount wait coverage to full glock lifetime

Although all glocks are, by the time of the umount glock wait,
scheduled for demotion, some of them haven't made it far
enough through the process for the original set of waiting
code to wait for them.

This extends the ref count to the whole glock lifetime in order
to ensure that the waiting does catch all glocks. It does make
it a bit more invasive, but it seems the only sensible solution
at the moment.

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