From 1b91af3b944169af03e2695faeb805bc93ca654e Mon Sep 17 00:00:00 2001 From: Rui Xiang Date: Wed, 20 Feb 2019 20:39:52 +0800 Subject: [PATCH] sched, rt: fix isolated CPUs leaving task_group indefinitely throttled euler inclusion category: bugfix Bugzilla: 7466 CVE: N/A ---------------------------------------- e221d028bb (sched,rt: fix isolated CPUs leaving root_task_group indefinitely throttled) only fixes isolated CPUs leaving root_task_group, and not fix all other ordinary task_groutask_group. In some scenarios where we need attach task bind to isolated CPUs to task_group, the same problem will occurs. This commit fixes it. Reported-and-tested-by: Likun Signed-off-by: Rui Xiang Signed-off-by: Bixuan Cui Reviewed-by: Xie XiuQi Signed-off-by: Yang Yingliang --- kernel/sched/rt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index f9f036c0e632..5a9c27956792 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -824,8 +824,7 @@ static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun) * off to kill the perturbations it causes anyway. Meanwhile, * this maintains functionality for boot and/or troubleshooting. */ - if (rt_b == &root_task_group.rt_bandwidth) - span = cpu_online_mask; + span = cpu_online_mask; #endif for_each_cpu(i, span) { int enqueue = 0; -- GitLab