Re: [PATCH -tip 01/32] sched: Wrap rq::lock access

From: Joel Fernandes
Date: Fri Nov 20 2020 - 11:55:48 EST


On Fri, Nov 20, 2020 at 10:31:39AM +1100, Singh, Balbir wrote:
> On 18/11/20 10:19 am, Joel Fernandes (Google) wrote:
> > From: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> >
> > In preparation of playing games with rq->lock, abstract the thing
> > using an accessor.
> >
>
> Could you clarify games? I presume the intention is to redefine the scope
> of the lock based on whether core sched is enabled or not? I presume patch
> 4/32 has the details.

Your line wrapping broke, I fixed it.

That is in fact the game. By wrapping it, the nature of the locking is
dynamic based on whether core sched is enabled or not (both statically and
dynamically).

thanks,

- Joel


> Balbir Singh