[patch] cond-resched-might-sleep-fix.patch

From: Ingo Molnar
Date: Tue Apr 18 2006 - 07:49:39 EST


From: Ingo Molnar <mingo@xxxxxxx>

add the __might_sleep() check back to cond_resched().

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>

----

kernel/sched.c | 3 +++
1 files changed, 3 insertions(+)

Index: linux/kernel/sched.c
===================================================================
--- linux.orig/kernel/sched.c
+++ linux/kernel/sched.c
@@ -4072,6 +4072,9 @@ asmlinkage long sys_sched_yield(void)

static inline void __cond_resched(void)
{
+#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
+ __might_sleep(__FILE__, __LINE__);
+#endif
/*
* The BKS might be reacquired before we have dropped
* PREEMPT_ACTIVE, which could trigger a second
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/