ocfs2_dlm: Call node eviction callbacks from heartbeat handler

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, January 25, 2008 - 7:01 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=656116...
Commit:     6561168cb442be8d2769dce663870b6a28573e16
Parent:     2d94dfc8c38edf63e91e48fd55c3a8822b6a9ced
Author:     Mark Fasheh <mark.fasheh@oracle.com>
AuthorDate: Fri Sep 7 11:11:10 2007 -0700
Committer:  Mark Fasheh <mark.fasheh@oracle.com>
CommitDate: Fri Jan 25 14:36:40 2008 -0800

    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 <mark.fasheh@oracle.com>
---
 fs/ocfs2/dlm/dlmrecovery.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c
index 2fde7bf..b10f3e3 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ocfs2_dlm: Call node eviction callbacks from heartbeat handler, Linux Kernel Mailing ..., (Fri Jan 25, 7:01 pm)