Re: 2.5.64-mm2->4 hangs on contest

Mike Galbraith
2003-03-12T09:06:04Z

[-- Attachment #1: Type: text/plain, Size: 109 bytes --]

I can't help myself... the attached is just too simple and works too darn well.

Somebody stop me! :)

-Mike

[-- Attachment #2: bk5_sched.diff --]
[-- Type: application/octet-stream, Size: 571 bytes --]

--- linux-2.5.64-bk5/kernel/sched.c.org Wed Mar 12 08:51:11 2003
+++ linux-2.5.64-bk5/kernel/sched.c Wed Mar 12 10:36:30 2003
@@ -397,6 +397,10 @@
rq->nr_uninterruptible++;
dequeue_task(p, p->array);
p->array = NULL;
+#if 1
+ if (p->sleep_avg)
+ p->sleep_avg--;
+#endif
}

/*
@@ -1228,8 +1232,10 @@
* it possible for interactive tasks to use up their
* timeslices at their highest priority levels.
*/
+#if 0
if (p->sleep_avg)
p->sleep_avg--;
+#endif
if (unlikely(rt_task(p))) {
/*
* RR tasks need a special form of timeslice management.