public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] sched/smt: Fix error handling in sched_cpu_deactivate()
@ 2024-07-03  3:16 Yang Yingliang
  2024-07-03  3:16 ` [PATCH 1/4] sched/smt: Introduce sched_smt_present_inc/dec() helper Yang Yingliang
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Yang Yingliang @ 2024-07-03  3:16 UTC (permalink / raw)
  To: linux-kernel
  Cc: mingo, peterz, juri.lelli, vincent.guittot, dietmar.eggemann,
	rostedt, bsegall, mgorman, bristot, vschneid, tglx, yu.c.chen,
	tim.c.chen, yangyingliang, liwei391

From: Yang Yingliang <yangyingliang@huawei.com>

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-07-29 10:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-03  3:16 [PATCH 0/4] sched/smt: Fix error handling in sched_cpu_deactivate() Yang Yingliang
2024-07-03  3:16 ` [PATCH 1/4] sched/smt: Introduce sched_smt_present_inc/dec() helper Yang Yingliang
2024-07-29 10:34   ` [tip: sched/core] " tip-bot2 for Yang Yingliang
2024-07-03  3:16 ` [PATCH 2/4] sched/smt: fix unbalance sched_smt_present dec/inc Yang Yingliang
2024-07-29 10:34   ` [tip: sched/core] sched/smt: Fix " tip-bot2 for Yang Yingliang
2024-07-03  3:16 ` [PATCH 3/4] sched/core: Introduce sched_set_rq_on/offline() helper Yang Yingliang
2024-07-16 13:22   ` Markus Elfring
2024-07-29 10:34   ` [tip: sched/core] " tip-bot2 for Yang Yingliang
2024-07-03  3:16 ` [PATCH 4/4] sched/core: fix unbalance set_rq_online/offline() in sched_cpu_deactivate() Yang Yingliang
2024-07-29 10:34   ` [tip: sched/core] sched/core: Fix " tip-bot2 for Yang Yingliang
2024-07-16  9:54 ` [PATCH 0/4] sched/smt: Fix error handling " Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox