Messages in this thread Patch in this message | | | Date | Tue, 18 Apr 2006 12:45:55 +0200 | From | Ingo Molnar <> | Subject | [patch] cond-resched-might-sleep-fix.patch |
| |
From: Ingo Molnar <mingo@elte.hu>
add the __might_sleep() check back to cond_resched().
Signed-off-by: Ingo Molnar <mingo@elte.hu>
----
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |