]> git.proxmox.com Git - mirror_spl.git/blobdiff - modules/spl/spl-debug.c
Breaking the world for a little bit. If anyone is going to continue
[mirror_spl.git] / modules / spl / spl-debug.c
index 656df961494fa566e6bf0e13f886fb89f9fbce4e..1fd38e30a062383f048fbec772c03bbb97a8a28a 100644 (file)
@@ -44,7 +44,6 @@
 #include <sys/proc.h>
 #include <sys/debug.h>
 #include <spl-ctl.h>
-#include "config.h"
 
 #ifdef DEBUG_SUBSYSTEM
 #undef DEBUG_SUBSYSTEM
@@ -1118,7 +1117,7 @@ void spl_debug_dumpstack(struct task_struct *tsk)
                 tsk = current;
 
         printk(KERN_ERR "SPL: Showing stack for process %d\n", tsk->pid);
-        show_task(tsk);
+        dump_stack();
 }
 EXPORT_SYMBOL(spl_debug_dumpstack);
 
@@ -1255,8 +1254,13 @@ debug_init(void)
         if (rc)
                 return rc;
 
+#ifdef HAVE_ATOMIC_PANIC_NOTIFIER
         atomic_notifier_chain_register(&panic_notifier_list,
                                        &spl_panic_notifier);
+#else
+        notifier_chain_register(&panic_notifier_list,
+                                &spl_panic_notifier);
+#endif
        return rc;
 }
 
@@ -1306,8 +1310,14 @@ trace_fini(void)
 void
 debug_fini(void)
 {
+#ifdef HAVE_ATOMIC_PANIC_NOTIFIER
         atomic_notifier_chain_unregister(&panic_notifier_list,
                                          &spl_panic_notifier);
+#else
+        notifier_chain_unregister(&panic_notifier_list,
+                                  &spl_panic_notifier);
+#endif
+
         trace_fini();
 
        return;