Re: [PATCH 11/49] x86/alternatives: Remove the confusing, inaccurate & unnecessary 'temp_mm_state_t' abstraction
From: Peter Zijlstra
Date: Wed Apr 02 2025 - 03:54:30 EST
On Wed, Apr 02, 2025 at 06:07:19AM +0200, Ingo Molnar wrote:
>
> * Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
> >
> > * Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> >
> > > On Fri, Mar 28, 2025 at 02:26:26PM +0100, Ingo Molnar wrote:
> > > > So the temp_mm_state_t abstraction used by use_temporary_mm() and
> > > > unuse_temporary_mm() is super confusing:
> > >
> > > I thing I see what you're saying, but we also still have these patches
> > > pending:
> > >
> > > https://lkml.kernel.org/r/20241119162527.952745944@xxxxxxxxxxxxx
> > >
> > > :-(
> >
> > Yeah, so I think we should do your queue on top of mine, the
> > whole temp_mm_state_t abstraction was rather nonsensical,
> > and we shouldn't be iterating confusing code...
> >
> > I've ported patches #1 and #3 from your queue on top, see
> > attached below - these should be the two that represent 99%
> > of the conflicts between these two efforts AFAICS.
> >
> > Does that work for you?
>
> To make this an easier decision, I've ported Andy's and your patches on
> top of the x86/alternatives series, into WIP.x86/mm, resolving the
> conflicts, with a few touchups:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git WIP.x86/mm
>
> Seems to work fine, after some light testing.
>
> I'll send it out for another round of review if that's fine to you.
Yep, that looks right, Thanks!