]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6eb0b710c29205f97bf1ce33f4be47c5753d5a7
tree34e8cf87485edf4ecb6878ade96704975e5d5bf5
parentc34eebaca220018e4c4f5a154abe486f179155a0
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