From: Brian Behlendorf Date: Thu, 20 May 2010 17:15:51 +0000 (-0700) Subject: Disable spl_debug_panic_on_bug by default. X-Git-Tag: spl-0.4.9~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3626ae6a7008b2d4d16ddd01defd45a8d7aac3b8;p=spl 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. --- diff --git a/module/spl/spl-debug.c b/module/spl/spl-debug.c index 3d07a56..8ee6c5d 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");