]> granicus.if.org Git - zfs/commitdiff
Disable spl_debug_panic_on_bug by default.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 20 May 2010 17:15:51 +0000 (10:15 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 20 May 2010 17:15:51 +0000 (10:15 -0700)
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

index 3d07a5647cba8a0bf4ed9f7e8c5333649f1b152a..8ee6c5dfb8ea611132c361c44c6b58d11e5ab11e 100644 (file)
@@ -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");