ocfs2-devel.oss.oracle.com archive mirror
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] ocfs2/dlm: clear refmap bit of recovery lock while doing local recovery cleanup
@ 2016-02-02  1:18 xuejiufei
  0 siblings, 0 replies; only message in thread
From: xuejiufei @ 2016-02-02  1:18 UTC (permalink / raw)
  To: ocfs2-devel

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>
---
 fs/ocfs2/dlm/dlmrecovery.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c
index 4c7b548..213279d 100644
--- a/fs/ocfs2/dlm/dlmrecovery.c
+++ b/fs/ocfs2/dlm/dlmrecovery.c
@@ -2379,6 +2379,8 @@ static void dlm_do_local_recovery_cleanup(struct dlm_ctxt *dlm, u8 dead_node)
 						break;
 					}
 				}
+				dlm_lockres_clear_refmap_bit(dlm, res,
+						dead_node);
 				spin_unlock(&res->spinlock);
 				continue;
 			}
-- 
1.8.4.3

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

only message in thread, other threads:[~2016-02-02  1:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-02  1:18 [Ocfs2-devel] [PATCH] ocfs2/dlm: clear refmap bit of recovery lock while doing local recovery cleanup xuejiufei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).