Re: [PATCH] sched: Fix Core-wide rq->lock for uninitialized CPUs

From: Peter Zijlstra
Date: Fri Aug 20 2021 - 06:03:02 EST


On Thu, Aug 19, 2021 at 05:18:22PM -0700, Josh Don wrote:
> Hi Peter,
>
> On Thu, Aug 19, 2021 at 4:09 AM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> >
> > - /* shared state */
> > + /* shared state -- careful with sched_core_cpu_deactivate() */
>
> Could also throw these fields into a wrapping struct. Either way seems fine.
>
> Reviewed-by: Josh Don <joshdon@xxxxxxxxxx>

Yes, I considered that, but didn't want the churn at this time.