From 3626ae6a7008b2d4d16ddd01defd45a8d7aac3b8 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 20 May 2010 10:15:51 -0700 Subject: [PATCH] Disable spl_debug_panic_on_bug by default. While I may prefer to have the system panic on an SBUG and to get crash dump for analysis. I suspect most peoples systems are not configured from crash dump and the best thing to so is to simply halt the thread and print an error to the console. This way they have a good chance of actually saving the stack trace and debug log. --- module/spl/spl-debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/spl/spl-debug.c b/module/spl/spl-debug.c index 3d07a5647c..8ee6c5dfb8 100644 --- a/module/spl/spl-debug.c +++ b/module/spl/spl-debug.c @@ -71,7 +71,7 @@ EXPORT_SYMBOL(spl_debug_binary); unsigned int spl_debug_catastrophe; EXPORT_SYMBOL(spl_debug_catastrophe); -unsigned int spl_debug_panic_on_bug = 1; +unsigned int spl_debug_panic_on_bug = 0; EXPORT_SYMBOL(spl_debug_panic_on_bug); module_param(spl_debug_panic_on_bug, int, 0644); MODULE_PARM_DESC(spl_debug_panic_on_bug, "Panic on BUG");