[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240716095418.GD26750@noisy.programming.kicks-ass.net>
Date: Tue, 16 Jul 2024 11:54:18 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Yang Yingliang <yangyingliang@...weicloud.com>
Cc: linux-kernel@...r.kernel.org, mingo@...hat.com, juri.lelli@...hat.com,
vincent.guittot@...aro.org, dietmar.eggemann@....com,
rostedt@...dmis.org, bsegall@...gle.com, mgorman@...e.de,
bristot@...hat.com, vschneid@...hat.com, tglx@...utronix.de,
yu.c.chen@...el.com, tim.c.chen@...ux.intel.com,
yangyingliang@...wei.com, liwei391@...wei.com
Subject: Re: [PATCH 0/4] sched/smt: Fix error handling in
sched_cpu_deactivate()
On Wed, Jul 03, 2024 at 11:16:06AM +0800, Yang Yingliang wrote:
> From: Yang Yingliang <yangyingliang@...wei.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(-)
Thanks!
Powered by blists - more mailing lists