Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched/core: Fix unbalance set_rq_online/offline() in sched_cpu_deactivate()

If cpuset_cpu_inactive() fails, set_rq_online() need be called to rollback.

Fixes: 120455c514f7 ("sched: Fix hotplug vs CPU bandwidth control")
Cc: stable@kernel.org
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240703031610.587047-5-yangyingliang@huaweicloud.com

authored by

Yang Yingliang and committed by
Peter Zijlstra
fe7a11c7 2f027354

+1
+1
kernel/sched/core.c
··· 8022 8022 ret = cpuset_cpu_inactive(cpu); 8023 8023 if (ret) { 8024 8024 sched_smt_present_inc(cpu); 8025 + sched_set_rq_online(rq, cpu); 8025 8026 balance_push_set(cpu, false); 8026 8027 set_cpu_active(cpu, true); 8027 8028 sched_update_numa(cpu, true);