From: Xue jiufei Date: Tue, 10 Feb 2015 22:08:40 +0000 (-0800) Subject: ocfs2/dlm: add missing dlm_lock_put() when recovery master down X-Git-Tag: fixes-v4.0-rc1~155^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b934beaf4b920a95db012b3d4476e8375dd4415b;p=pandora-kernel.git 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 Reported-by: yangwenfang Cc: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed