Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8651c658 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Ingo Molnar
Browse files

sched: Fix the task-group check in tg_has_rt_tasks()



tg_has_rt_tasks() wants to find an RT task in this task_group, but
task_rq(p)->rt.tg wrongly checks the root rt_rq.

Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Reviewed-by: default avatarKirill Tkhai <ktkhai@parallels.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Mike Galbraith <umgwanakikbuti@gmail.com>
Link: http://lkml.kernel.org/r/20140921193336.GA28618@redhat.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 83a0a96a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7441,7 +7441,7 @@ static inline int tg_has_rt_tasks(struct task_group *tg)
	struct task_struct *g, *p;

	for_each_process_thread(g, p) {
		if (rt_task(p) && task_rq(p)->rt.tg == tg)
		if (rt_task(p) && task_group(p) == tg)
			return 1;
	}