diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/spl/spl-debug.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/spl/spl-debug.c b/module/spl/spl-debug.c index a3fcd74e0..0602a1a89 100644 --- a/module/spl/spl-debug.c +++ b/module/spl/spl-debug.c @@ -1112,6 +1112,9 @@ void spl_debug_bug(char *file, const char *func, const int line, int flags) /* not reached */ } + if (in_atomic() || irqs_disabled()) + flags |= DL_NOTHREAD; + /* Ensure all debug pages and dumped by current cpu */ if (spl_debug_panic_on_bug) spl_panic_in_progress = 1; |