]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched/core: Fix unbalance set_rq_online/offline() in sched_cpu_deactivate()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 3 Jul 2024 03:16:10 +0000 (11:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:35 +0000 (15:34 +0200)
commitf70942b5eedf863f2fbcd42d697a6ac75e2488c0
tree2f3b89bbb28c4077fd6c45e795444a81583e2937
parent5a1263d95358cf9f57d20c6bce949c9fe34f4d11
sched/core: Fix unbalance set_rq_online/offline() in sched_cpu_deactivate()

commit fe7a11c78d2a9bdb8b50afc278a31ac177000948 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/sched/core.c