Re: [PATCH 23/49] x86/alternatives: Simplify smp_text_poke_single() by using tp_vec and existing APIs

From: Ingo Molnar
Date: Tue Apr 01 2025 - 14:50:01 EST



* Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> On Fri, Mar 28, 2025 at 02:26:38PM +0100, Ingo Molnar wrote:
> > Instead of constructing a vector on-stack, just use the already
> > available batch-patching vector - which should always be empty
> > at this point.
> >
> > This will allow subsequent simplifications.
>
> This should go before patch 20, otherwise you'll have this intermediate
> state where we trip the WARN, no?

Yeah, indeed - I've shuffled them around in the latest
WIP.x86/alternatives.

Thanks,

Ingo