]> git.karo-electronics.de Git - linux-beck.git/commit
dlm: fix unlock balance warnings
authorDavid Teigland <teigland@redhat.com>
Thu, 2 Aug 2012 16:08:21 +0000 (11:08 -0500)
committerDavid Teigland <teigland@redhat.com>
Wed, 8 Aug 2012 16:33:49 +0000 (11:33 -0500)
commit475f230c6072fb2186f48b23943afcd0ee3a8343
tree42c7979e644138ed93f30f2cd8cf2c33bb849078
parent6ad2291624824c1de19dbbbbb6d4f9f601b60781
dlm: fix unlock balance warnings

The in_recovery rw_semaphore has always been acquired and
released by different threads by design.  To work around
the "BUG: bad unlock balance detected!" messages, adjust
things so the dlm_recoverd thread always does both down_write
and up_write.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/dlm_internal.h
fs/dlm/lockspace.c
fs/dlm/member.c
fs/dlm/rcom.c
fs/dlm/recoverd.c
fs/dlm/recoverd.h