]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[DLM] clear sbflags on lock master
authorDavid Teigland <teigland@redhat.com>
Fri, 10 Nov 2006 20:16:27 +0000 (14:16 -0600)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 30 Nov 2006 15:35:27 +0000 (10:35 -0500)
commit6f90a8b1b87f97144911790390d56f695b59db9b
tree1a6a4d972984554535aec02880af159f45128668
parent4b77f2c93d052adca8cc8690b9b5e7f8798f4ddd
[DLM] clear sbflags on lock master

RH BZ 211622

The ALTMODE flag can be set in the lock master's copy of the lock but
never cleared, so ALTMODE will also be returned in a subsequent conversion
of the lock when it shouldn't be.  This results in lock_dlm incorrectly
switching to the alternate lock mode when returning the result to gfs
which then asserts when it sees the wrong lock state.  The fix is to
propagate the cleared sbflags value to the master node when the lock is
requested.  QA's d_rwrandirectlarge test triggers this bug very quickly.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/dlm/lock.c