GFS2: recovery stuck on transaction lock
authorBob Peterson <rpeterso@redhat.com>
Wed, 23 Jun 2010 15:44:47 +0000 (11:44 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 15 Jul 2010 08:05:57 +0000 (09:05 +0100)
commitb7dc2df5725fe7355fd76000ead7e39728e1b8a9
tree4057c89535f6204d95f28950809fcb4b1c25dfa4
parenta8bf2bc212e129dd59a8b06cdbc15079cc3bd876
GFS2: recovery stuck on transaction lock

This patch fixes bugzilla bug #590878: GFS2: recovery stuck on
transaction lock.  We set the frozen flag on the glock when we receive
a completion that cannot be delivered due to blocked locks. At that
point we check to see whether the first waiting holder has the noexp
flag set. If the noexp lock is queued later, then we need to unfreeze
the glock at that point in time, namely, in the glock work function.

This patch was originally written by Steve Whitehouse, but since
he's on holiday, I'm submitting it.  It's been well tested with a
complex recovery test called revolver.

Signed-off-by: Steve Whitehouse <swhiteho@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/glock.c