Skip to content

Commit

Permalink
[PATCH] ocfs2: detach from heartbeat events before freeing mle
Browse files Browse the repository at this point in the history
Signed-off-by: Kurt Hackel <Kurt.Hackel@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
  • Loading branch information
Kurt Hackel authored and Mark Fasheh committed Feb 16, 2006
1 parent 745ae8b commit f671c09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fs/ocfs2/dlm/dlmmaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -2482,7 +2482,9 @@ void dlm_clean_master_list(struct dlm_ctxt *dlm, u8 dead_node)
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;
Expand Down Expand Up @@ -2537,6 +2539,9 @@ void dlm_clean_master_list(struct dlm_ctxt *dlm, u8 dead_node)
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);
Expand Down

0 comments on commit f671c09

Please sign in to comment.