aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/cluster/quorum.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/cluster/quorum.c')
-rw-r--r--fs/ocfs2/cluster/quorum.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/fs/ocfs2/cluster/quorum.c b/fs/ocfs2/cluster/quorum.c
index bbacf7da48a4..cf3e16696216 100644
--- a/fs/ocfs2/cluster/quorum.c
+++ b/fs/ocfs2/cluster/quorum.c
@@ -44,7 +44,6 @@
44 * and if they're the last, they fire off the decision. 44 * and if they're the last, they fire off the decision.
45 */ 45 */
46#include <linux/kernel.h> 46#include <linux/kernel.h>
47#include <linux/slab.h>
48#include <linux/workqueue.h> 47#include <linux/workqueue.h>
49#include <linux/reboot.h> 48#include <linux/reboot.h>
50 49
@@ -74,8 +73,20 @@ static void o2quo_fence_self(void)
74 * threads can still schedule, etc, etc */ 73 * threads can still schedule, etc, etc */
75 o2hb_stop_all_regions(); 74 o2hb_stop_all_regions();
76 75
77 printk("ocfs2 is very sorry to be fencing this system by restarting\n"); 76 switch (o2nm_single_cluster->cl_fence_method) {
78 emergency_restart(); 77 case O2NM_FENCE_PANIC:
78 panic("*** ocfs2 is very sorry to be fencing this system by "
79 "panicing ***\n");
80 break;
81 default:
82 WARN_ON(o2nm_single_cluster->cl_fence_method >=
83 O2NM_FENCE_METHODS);
84 case O2NM_FENCE_RESET:
85 printk(KERN_ERR "*** ocfs2 is very sorry to be fencing this "
86 "system by restarting ***\n");
87 emergency_restart();
88 break;
89 };
79} 90}
80 91
81/* Indicate that a timeout occured on a hearbeat region write. The 92/* Indicate that a timeout occured on a hearbeat region write. The