Re: [patch] voluntary-preempt-2.6.8.1-P0

Ingo Molnar
2004-08-16T03:35:55Z

doh - i think i found a brown-paperbag bug.

could you change this code in kernel/sched.c:

int __sched voluntary_resched(void)
{
#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
__might_sleep(__FILE__, __LINE__);
#endif
if (kernel_preemption || !voluntary_preemption)
return 0;

to:

int __sched voluntary_resched(void)
{
#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
__might_sleep(__FILE__, __LINE__);
#endif
if (!voluntary_preemption)
return 0;

Does the mlockall xrun still occur?

Ingo