Thanks Linus.
Um, Ray? 2.4's yield also does:
void yield(void)
{
set_current_state(TASK_RUNNING);
sys_sched_yield();
schedule();
}
So how did the below patch make any difference?
Now thoroughly confused,
Rusty.
--- linux-2.4.22-pre2.orig/mm/page_alloc.c Thu Nov 28 17:53:15 2002
+++ linux-2.4.22-pre2/mm/page_alloc.c Fri Jun 27 13:47:49 2003
@@ -418,6 +418,7 @@
return NULL;
/* Yield for kswapd, and try again */
+ set_current_state(TASK_RUNNING);
yield();
goto rebalance;
}
-- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - 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/