[Ocfs2-commits] khackel commits r2765 - branches/ocfs2-1.2/fs/ocfs2/dlm
svn-commits@oss.oracle.com
svn-commits at oss.oracle.com
Tue Feb 14 16:19:10 CST 2006
Author: khackel
Signed-off-by: mfasheh
Date: 2006-02-14 16:19:09 -0600 (Tue, 14 Feb 2006)
New Revision: 2765
Modified:
branches/ocfs2-1.2/fs/ocfs2/dlm/dlmmaster.c
Log:
* detach from heartbeat events before freeing mle
Signed-off-by: mfasheh
Modified: branches/ocfs2-1.2/fs/ocfs2/dlm/dlmmaster.c
===================================================================
--- branches/ocfs2-1.2/fs/ocfs2/dlm/dlmmaster.c 2006-02-14 01:14:24 UTC (rev 2764)
+++ branches/ocfs2-1.2/fs/ocfs2/dlm/dlmmaster.c 2006-02-14 22:19:09 UTC (rev 2765)
@@ -2474,7 +2474,9 @@
atomic_set(&mle->woken, 1);
spin_unlock(&mle->spinlock);
wake_up(&mle->wq);
- /* final put will take care of list removal */
+ /* do not need events any longer, so detach
+ * from heartbeat */
+ __dlm_mle_detach_hb_events(dlm, mle);
__dlm_put_mle(mle);
}
continue;
@@ -2529,6 +2531,9 @@
spin_unlock(&res->spinlock);
dlm_lockres_put(res);
+ /* about to get rid of mle, detach from heartbeat */
+ __dlm_mle_detach_hb_events(dlm, mle);
+
/* dump the mle */
spin_lock(&dlm->master_lock);
__dlm_put_mle(mle);
More information about the Ocfs2-commits
mailing list