ocfs2/dlm: clear refmap bit of recovery lock while doing local recovery cleanup
authorxuejiufei <xuejiufei@huawei.com>
Fri, 5 Feb 2016 23:36:47 +0000 (15:36 -0800)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Feb 2016 20:45:36 +0000 (15:45 -0500)
commitff5ecd2953a635bf70101dac550fcb01ced863e9
treea6424e3ccab1cf89ae8953099ba0178566885b00
parent8a4ebc74857af2377d9b3f756714ded686e01b66
ocfs2/dlm: clear refmap bit of recovery lock while doing local recovery cleanup

[ Upstream commit c95a51807b730e4681e2ecbdfd669ca52601959e ]

When recovery master down, dlm_do_local_recovery_cleanup() only remove
the $RECOVERY lock owned by dead node, but do not clear the refmap bit.
Which will make umount thread falling in dead loop migrating $RECOVERY
to the dead node.

Signed-off-by: xuejiufei <xuejiufei@huawei.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/ocfs2/dlm/dlmrecovery.c