Commit d6dbfa23 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] might_sleep diagnostics

might_sleep() can be triggered by either local interrupts being disabled or
by elevated preempt count.  Disambiguate them.
parent 2cf13d58
...@@ -2809,6 +2809,8 @@ void __might_sleep(char *file, int line) ...@@ -2809,6 +2809,8 @@ void __might_sleep(char *file, int line)
prev_jiffy = jiffies; prev_jiffy = jiffies;
printk(KERN_ERR "Debug: sleeping function called from invalid" printk(KERN_ERR "Debug: sleeping function called from invalid"
" context at %s:%d\n", file, line); " context at %s:%d\n", file, line);
printk("in_atomic():%d, irqs_disabled():%d\n",
in_atomic(), irqs_disabled());
dump_stack(); dump_stack();
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment