Re: [PATCH v2 07/11] convert this_cpu_cmpxchg users to this_cpu_cmpxchg_local

From: Peter Xu
Date: Thu Mar 02 2023 - 15:55:55 EST


On Thu, Feb 09, 2023 at 12:01:57PM -0300, Marcelo Tosatti wrote:
> this_cpu_cmpxchg was modified to atomic version, which
> can be more costly than non-atomic version.
>
> Switch users of this_cpu_cmpxchg to this_cpu_cmpxchg_local
> (which preserves pre-non-atomic this_cpu_cmpxchg behaviour).
>
> Signed-off-by: Marcelo Tosatti <mtosatti@xxxxxxxxxx>

Yes afaict these are the only pieces that uses the helper besides vmstat
udpates.

Acked-by: Peter Xu <peterx@xxxxxxxxxx>

--
Peter Xu