From: Mark Fasheh Date: Fri, 7 Sep 2007 18:11:10 +0000 (-0700) Subject: ocfs2_dlm: Call node eviction callbacks from heartbeat handler X-Git-Tag: v2.6.25-rc1~1232^2~30 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6561168cb442be8d2769dce663870b6a28573e16;p=linux-2.6-omap-h63xx.git ocfs2_dlm: Call node eviction callbacks from heartbeat handler With this, a dlm client can take advantage of the group protocol in the dlm to get full notification whenever a node within the dlm domain leaves unexpectedly. Signed-off-by: Mark Fasheh --- diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c index 2fde7bf9143..b10f3e313fb 100644 --- a/fs/ocfs2/dlm/dlmrecovery.c +++ b/fs/ocfs2/dlm/dlmrecovery.c @@ -2321,6 +2321,13 @@ void dlm_hb_node_down_cb(struct o2nm_node *node, int idx, void *data) if (!dlm_grab(dlm)) return; + /* + * This will notify any dlm users that a node in our domain + * went away without notifying us first. + */ + if (test_bit(idx, dlm->domain_map)) + dlm_fire_domain_eviction_callbacks(dlm, idx); + spin_lock(&dlm->spinlock); __dlm_hb_node_down(dlm, idx); spin_unlock(&dlm->spinlock);