]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
sched/fair: Fix endless loop in idle_balance()
authorKirill Tkhai <ktkhai@parallels.com>
Thu, 6 Mar 2014 15:16:15 +0000 (19:16 +0400)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Mar 2014 11:05:41 +0000 (12:05 +0100)
Check for fair tasks number to decide, that we've pulled a task.
rq's nr_running may contain throttled RT tasks.

Signed-off-by: Kirill Tkhai <ktkhai@parallels.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1394118975.19290.104.camel@tkhai
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c

index 10db4a87ad72186203d892bb96df66a6b28beee2..f1eedae1e83e6f825e799964d7abd3ef613828e2 100644 (file)
@@ -6710,7 +6710,7 @@ static int idle_balance(struct rq *this_rq)
         * While browsing the domains, we released the rq lock.
         * A task could have be enqueued in the meantime
         */
-       if (this_rq->nr_running && !pulled_task) {
+       if (this_rq->cfs.h_nr_running && !pulled_task) {
                pulled_task = 1;
                goto out;
        }