[PATCH] ocfs2: detach from heartbeat events before freeing mle
Signed-off-by: Kurt Hackel <Kurt.Hackel@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
This commit is contained in:
parent
745ae8ba29
commit
f671c09bce
1 changed files with 6 additions and 1 deletions
|
@ -2482,7 +2482,9 @@ void dlm_clean_master_list(struct dlm_ctxt *dlm, u8 dead_node)
|
||||||
atomic_set(&mle->woken, 1);
|
atomic_set(&mle->woken, 1);
|
||||||
spin_unlock(&mle->spinlock);
|
spin_unlock(&mle->spinlock);
|
||||||
wake_up(&mle->wq);
|
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);
|
__dlm_put_mle(mle);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
@ -2537,6 +2539,9 @@ void dlm_clean_master_list(struct dlm_ctxt *dlm, u8 dead_node)
|
||||||
spin_unlock(&res->spinlock);
|
spin_unlock(&res->spinlock);
|
||||||
dlm_lockres_put(res);
|
dlm_lockres_put(res);
|
||||||
|
|
||||||
|
/* about to get rid of mle, detach from heartbeat */
|
||||||
|
__dlm_mle_detach_hb_events(dlm, mle);
|
||||||
|
|
||||||
/* dump the mle */
|
/* dump the mle */
|
||||||
spin_lock(&dlm->master_lock);
|
spin_lock(&dlm->master_lock);
|
||||||
__dlm_put_mle(mle);
|
__dlm_put_mle(mle);
|
||||||
|
|
Loading…
Reference in a new issue