Re: [PATCH] mm: memcg/slab: enable slab memory accounting atomically

2020-11-10 Thread Roman Gushchin
On Tue, Nov 10, 2020 at 10:21:43AM -0500, Johannes Weiner wrote: > On Mon, Nov 09, 2020 at 05:06:15PM -0800, Roman Gushchin wrote: > > Many kernel memory accounting paths are guarded by the > > memcg_kmem_enabled_key static key. It changes it's state during > > the onlining of the first non-root cg

Re: [PATCH] mm: memcg/slab: enable slab memory accounting atomically

2020-11-10 Thread Johannes Weiner
On Mon, Nov 09, 2020 at 05:06:15PM -0800, Roman Gushchin wrote: > Many kernel memory accounting paths are guarded by the > memcg_kmem_enabled_key static key. It changes it's state during > the onlining of the first non-root cgroup. However is doesn't > happen atomically: before all call sites will