Re: [PATCH -mm 2/8] memcg: destroy kmem caches when last slab is freed

2014-05-30 Thread Christoph Lameter
On Fri, 30 May 2014, Vladimir Davydov wrote: > When the memcg_cache_params->refcnt goes to 0, schedule the worker that > will unregister the cache. To prevent this from happening when the owner > memcg is alive, keep the refcnt incremented during memcg lifetime. Acked-by: Christoph Lameter -- T

[PATCH -mm 2/8] memcg: destroy kmem caches when last slab is freed

2014-05-30 Thread Vladimir Davydov
When the memcg_cache_params->refcnt goes to 0, schedule the worker that will unregister the cache. To prevent this from happening when the owner memcg is alive, keep the refcnt incremented during memcg lifetime. Note, this doesn't guarantee that the cache that belongs to a dead memcg will go away