GFS2: Fix glock ref counting bug
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 30 Apr 2009 13:52:58 +0000 (14:52 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Sat, 9 May 2009 14:15:17 +0000 (15:15 +0100)
commit0c7a531a200480c7bc447260376973d830da9069
tree778c5b97c869212f80bf94bd66ed04637e72e31d
parent091bf7624d1c90cec9e578a18529f615213ff847
GFS2: Fix glock ref counting bug

Depending on the ordering of events as we go around the
glock shrinker loop, it is possible to drop the ref count
of a glock incorrectly. It doesn't happen very often. This
patch corrects the got_ref variable, fixing the problem.

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