Commit d16263e9 authored by David S. Miller's avatar David S. Miller Committed by Linus Torvalds

[PATCH] Check for disabled local interrupts in "might_sleep()"

Self explanatory, as per the discussion last week.
parent 2d4e1a0f
......@@ -2554,7 +2554,7 @@ void __might_sleep(char *file, int line)
#if defined(in_atomic)
static unsigned long prev_jiffy; /* ratelimiting */
if (in_atomic()) {
if (in_atomic() || irqs_disabled()) {
if (time_before(jiffies, prev_jiffy + HZ))
return;
prev_jiffy = jiffies;
......
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