mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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: Oleg Nesterov <[email protected]> Reviewed-by: Kirill Tkhai <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Mike Galbraith <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
83a0a96a5f
commit
8651c65844
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue