[2.6.16-mm2 patch] don't awaken RT tasks on expired array
From: Mike Galbraith
Date: Fri Mar 31 2006 - 04:15:18 EST
RT tasks are being awakened on the expired array when expired_starving()
is true, whereas they really should be excluded. Fix below.
Signed-off-by: Mike Galbraith <efault@xxxxxx>
--- linux-2.6.16-mm2/kernel/sched.c.org 2006-03-31 09:56:37.000000000 +0200
+++ linux-2.6.16-mm2/kernel/sched.c 2006-03-31 10:01:54.000000000 +0200
@@ -820,7 +820,7 @@
{
prio_array_t *target = rq->active;
- if (unlikely(batch_task(p) || expired_starving(rq)))
+ if (unlikely(batch_task(p) || (expired_starving(rq) && !rt_task(p))))
target = rq->expired;
enqueue_task(p, target);
inc_nr_running(p, rq);
-
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/