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