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

authored by Kurt Hackel and committed by Mark Fasheh f671c09b 745ae8ba

+6 -1
+6 -1
fs/ocfs2/dlm/dlmmaster.c
··· 2482 2482 atomic_set(&mle->woken, 1); 2483 2483 spin_unlock(&mle->spinlock); 2484 2484 wake_up(&mle->wq); 2485 - /* final put will take care of list removal */ 2485 + /* do not need events any longer, so detach 2486 + * from heartbeat */ 2487 + __dlm_mle_detach_hb_events(dlm, mle); 2486 2488 __dlm_put_mle(mle); 2487 2489 } 2488 2490 continue; ··· 2538 2536 dlm_move_lockres_to_recovery_list(dlm, res); 2539 2537 spin_unlock(&res->spinlock); 2540 2538 dlm_lockres_put(res); 2539 + 2540 + /* about to get rid of mle, detach from heartbeat */ 2541 + __dlm_mle_detach_hb_events(dlm, mle); 2541 2542 2542 2543 /* dump the mle */ 2543 2544 spin_lock(&dlm->master_lock);