Re: [PATCH 2/5] mm, memcg: narrow the scope of percpu_charge_mutex

Michal Hocko
2021-08-03T07:27:52Z

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