Add in raw_irqs_disabled() into the might sleep check.
Signed-Off-By: Daniel Walker <[EMAIL PROTECTED]>
Index: linux-2.6.13/kernel/sched.c
===================================================================
--- linux-2.6.13.orig/kernel/sched.c 2005-09-02 23:42:18.000000000 +0000
+++ linux-2.6.13/kernel/sched.c 2005-09-03 03:44:24.000000000 +0000
@@ -5914,7 +5914,7 @@ void __might_sleep(char *file, int line)
#if defined(in_atomic)
static unsigned long prev_jiffy; /* ratelimiting */
- if ((in_atomic() || irqs_disabled()) &&
+ if ((in_atomic() || irqs_disabled() || raw_irqs_disabled()) &&
system_state == SYSTEM_RUNNING && !oops_in_progress) {
if (debug_direct_keyboard && hardirq_count())
return;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/