Skip to content

Commit 8a5bc07

Browse files
Mike GalbraithLinus Torvalds
authored andcommitted
[PATCH] sched: don't awaken RT tasks on expired array
RT tasks are being awakened on the expired array when expired_starving() is true, whereas they really should be excluded. Fix. Signed-off-by: Mike Galbraith <[email protected]> Acked-by: Ingo Molnar <[email protected]> Cc: Con Kolivas <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 5ce74ab commit 8a5bc07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ static void __activate_task(task_t *p, runqueue_t *rq)
713713
{
714714
prio_array_t *target = rq->active;
715715

716-
if (unlikely(batch_task(p) || expired_starving(rq)))
716+
if (unlikely(batch_task(p) || (expired_starving(rq) && !rt_task(p))))
717717
target = rq->expired;
718718
enqueue_task(p, target);
719719
rq->nr_running++;

0 commit comments

Comments
 (0)