]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2/dlm: add missing dlm_lock_put() when recovery master down
authorXue jiufei <xuejiufei@huawei.com>
Tue, 10 Feb 2015 22:08:40 +0000 (14:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Feb 2015 22:30:28 +0000 (14:30 -0800)
commit099202bde0c81299d067e80186b169f9b209ae55
treed1b96305b5ff4dae090ff6a323e1c5167ff4d473
parentd9c38cb9a17cc1425d0b8bf1486ef69cdf1f0c91
ocfs2/dlm: add missing dlm_lock_put() when recovery master down

When the recovery master is down, the owner of $RECOVERY calls
dlm_do_local_recovery_cleanup() to prune any $RECOVERY entries for dead
nodes.  The lock is in the granted list and the refcount must be 2.  We
should put twice to remove this lock.  Otherwise, it will lead to a memory
leak.

Signed-off-by: joyce.xue <xuejiufei@huawei.com>
Reported-by: yangwenfang <vicky.yangwenfang@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/dlm/dlmrecovery.c