Re: [PATCH] smp: Evaluate local cond_func() before IPI side-effects

From: Dave Hansen
Date: Tue Dec 03 2024 - 20:38:46 EST


On 12/3/24 10:39, Mathieu Desnoyers wrote:
> If cond_func() depends on loading shared state updated by other CPU's
> IPI handlers func(), then triggering execution of remote CPUs IPI before
> evaluating cond_func() may have unexpected consequences.

I always thought this was on purpose so cond_func() can be executed in
parallel with the remote work.

Could we double-check that this doesn't meaningfully slow down IPIs that
have longer work to do?