Re: [PATCH 2/5] mm, memcg: narrow the scope of percpu_charge_mutex
From: Michal Hocko
Date: Tue Aug 03 2021 - 03:28:03 EST
On Tue 03-08-21 07:13:35, Roman Gushchin wrote:
> I’d go with atomic_dec().
which is not implying memory barriers either. You would need
atomic_dec_return or some other explicit barrier IIRC.
--
Michal Hocko
SUSE Labs