Re: [PATCH v7 06/10] mm: don't check the dying flag on kmem_cache creation

2019-06-25 Thread Shakeel Butt
On Tue, Jun 11, 2019 at 4:18 PM Roman Gushchin wrote: > > There is no point in checking the root_cache->memcg_params.dying > flag on kmem_cache creation path. New allocations shouldn't be > performed using a dead root kmem_cache, Yes, it's the user's responsibility to synchronize the kmem cache d

Re: [PATCH v7 06/10] mm: don't check the dying flag on kmem_cache creation

2019-06-16 Thread Vladimir Davydov
On Tue, Jun 11, 2019 at 04:18:09PM -0700, Roman Gushchin wrote: > There is no point in checking the root_cache->memcg_params.dying > flag on kmem_cache creation path. New allocations shouldn't be > performed using a dead root kmem_cache, so no new memcg kmem_cache > creation can be scheduled after

[PATCH v7 06/10] mm: don't check the dying flag on kmem_cache creation

2019-06-11 Thread Roman Gushchin
There is no point in checking the root_cache->memcg_params.dying flag on kmem_cache creation path. New allocations shouldn't be performed using a dead root kmem_cache, so no new memcg kmem_cache creation can be scheduled after the flag is set. And if it was scheduled before, flush_memcg_workqueue()