]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Feb 2016 20:34:35 +0000 (12:34 -0800)
commite25c03af5c7b615e411b4ad9503e8227ecab910c
treeb4abf0aa7abb411e5c62f44dee0bd4b41c7a6dae
parent6f7b1e5e685fa0595e2293f091d350917f6b75a8
ocfs2/dlm: clear refmap bit of recovery lock while doing local recovery cleanup

commit c95a51807b730e4681e2ecbdfd669ca52601959e upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ocfs2/dlm/dlmrecovery.c