All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 16/22] ocfs2/dlm: clear refmap bit of recovery lock while doing local recovery cleanup
@ 2016-02-05 23:36 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-02-05 23:36 UTC (permalink / raw)
  To: torvalds, akpm, xuejiufei, jlbec, joseph.qi, junxiao.bi, mfasheh, stable

From: xuejiufei <xuejiufei@huawei.com>
Subject: ocfs2/dlm: clear refmap bit of recovery lock while doing local recovery cleanup

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>
---

 fs/ocfs2/dlm/dlmrecovery.c |    2 ++
 1 file changed, 2 insertions(+)

diff -puN fs/ocfs2/dlm/dlmrecovery.c~ocfs2-dlm-clear-refmap-bit-of-recovery-lock-while-doing-local-recovery-cleanup fs/ocfs2/dlm/dlmrecovery.c
--- a/fs/ocfs2/dlm/dlmrecovery.c~ocfs2-dlm-clear-refmap-bit-of-recovery-lock-while-doing-local-recovery-cleanup
+++ a/fs/ocfs2/dlm/dlmrecovery.c
@@ -2367,6 +2367,8 @@ static void dlm_do_local_recovery_cleanu
 						break;
 					}
 				}
+				dlm_lockres_clear_refmap_bit(dlm, res,
+						dead_node);
 				spin_unlock(&res->spinlock);
 				continue;
 			}
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-05 23:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-05 23:36 [patch 16/22] ocfs2/dlm: clear refmap bit of recovery lock while doing local recovery cleanup akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.