ocfs2_dlm: Fix lockres ref counting bug
authorSunil Mushran <sunil.mushran@oracle.com>
Fri, 23 Mar 2007 00:01:07 +0000 (17:01 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Mon, 26 Mar 2007 23:50:52 +0000 (16:50 -0700)
commit78062cb2e54ffe0df811dce5e68b54da9b8c9025
treed360f3440fbe3489ef1c467f0b4b8ef196516ec2
parente0f2e3a06be513352cb4955313ed7e55909acd84
ocfs2_dlm: Fix lockres ref counting bug

During umount, the umount thread migrates the lockres' and the dlm_thread
frees the empty lockres'. Due to a race, the reference counting on the
lockres goes awry leading to extra puts.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/dlm/dlmdomain.c
fs/ocfs2/dlm/dlmthread.c