[Ocfs2-commits] smushran commits r2994 - branches/ocfs2-1.2/fs/ocfs2/cluster

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon Mar 26 13:24:38 PDT 2007


Author: smushran
Date: 2007-03-26 13:24:37 -0700 (Mon, 26 Mar 2007)
New Revision: 2994

Modified:
   branches/ocfs2-1.2/fs/ocfs2/cluster/quorum.c
Log:
ocfs2: Replace panic() with machine_restart() when fencing

We have noticed panic() hanging leading us to a situation in which
the node, while otherwise dead, is still disk heartbeating. This
leads to a hung cluster as the other nodes are waiting for this
node to stop disk heartbeating. This situation is only resolved
by power resetting the box.

Signed-off-by: mfasheh

Modified: branches/ocfs2-1.2/fs/ocfs2/cluster/quorum.c
===================================================================
--- branches/ocfs2-1.2/fs/ocfs2/cluster/quorum.c	2007-03-22 21:14:41 UTC (rev 2993)
+++ branches/ocfs2-1.2/fs/ocfs2/cluster/quorum.c	2007-03-26 20:24:37 UTC (rev 2994)
@@ -46,6 +46,7 @@
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/workqueue.h>
+#include <linux/reboot.h>
 
 #include "heartbeat.h"
 #include "nodemanager.h"
@@ -72,7 +73,9 @@
 	/* panic spins with interrupts enabled.  with preempt
 	 * threads can still schedule, etc, etc */
 	o2hb_stop_all_regions();
-	panic("ocfs2 is very sorry to be fencing this system by panicing\n");
+
+	printk("ocfs2 is very sorry to be fencing this system by restarting\n");
+	machine_restart(NULL);
 }
 
 /* Indicate that a timeout occured on a hearbeat region write. The




More information about the Ocfs2-commits mailing list