[PATCH 0/4] sched/smt: Fix error handling in sched_cpu_deactivate()

From: Yang Yingliang
Date: Tue Jul 02 2024 - 23:24:31 EST


From: Yang Yingliang <yangyingliang@xxxxxxxxxx>

sched_smt_present decrement and set_rq_offline() is called before
cpuset_cpu_inactive(), if cpuset_cpu_inactive() fails, these two
things need be rollback.

Yang Yingliang (4):
sched/smt: Introduce sched_smt_present_inc/dec() helper
sched/smt: fix unbalance sched_smt_present dec/inc
sched/core: Introduce sched_set_rq_on/offline() helper
sched/core: fix unbalance set_rq_online/offline() in
sched_cpu_deactivate()

kernel/sched/core.c | 68 +++++++++++++++++++++++++++++++--------------
1 file changed, 47 insertions(+), 21 deletions(-)

--
2.25.1