Commit:     638e13ac37a1a89473415f407cbffc1688a20fe2
Parent:     5cb350baf580017da38199625b7365b1763d7180
Author:     Gautham R Shenoy <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 15 17:00:14 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Mon Oct 15 17:00:14 2007 +0200

    sched: fix rt ptracer monopolizing CPU
    yield() in wait_task_inactive(), can cause a high priority thread to be
    scheduled back in, and there by loop forever while it is waiting for some
    lower priority thread which is unfortunately still on the runqueue.
    Use schedule_timeout_uninterruptible(1) instead.
    Signed-off-by: Gautham R Shenoy <[EMAIL PROTECTED]>
    Credit: Oleg Nesterov <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
 kernel/sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 9ac9989..48fc74b 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1133,7 +1133,7 @@ repeat:
         * yield - it could be a while.
        if (unlikely(on_rq)) {
-               yield();
+               schedule_timeout_uninterruptible(1);
                goto repeat;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to