Re: [PATCH v5 13/18] memcg/sl[au]b Track all the memcg children of a kmem_cache.

2012-10-30 Thread Glauber Costa
On 10/29/2012 07:26 PM, JoonSoo Kim wrote: > 2012/10/19 Glauber Costa : >> +void kmem_cache_destroy_memcg_children(struct kmem_cache *s) >> +{ >> + struct kmem_cache *c; >> + int i; >> + >> + if (!s->memcg_params) >> + return; >> + if (!s->memcg_params->is_root

Re: [PATCH v5 13/18] memcg/sl[au]b Track all the memcg children of a kmem_cache.

2012-10-29 Thread JoonSoo Kim
2012/10/19 Glauber Costa : > +void kmem_cache_destroy_memcg_children(struct kmem_cache *s) > +{ > + struct kmem_cache *c; > + int i; > + > + if (!s->memcg_params) > + return; > + if (!s->memcg_params->is_root_cache) > + return; > + > + /* >

[PATCH v5 13/18] memcg/sl[au]b Track all the memcg children of a kmem_cache.

2012-10-19 Thread Glauber Costa
This enables us to remove all the children of a kmem_cache being destroyed, if for example the kernel module it's being used in gets unloaded. Otherwise, the children will still point to the destroyed parent. Signed-off-by: Suleiman Souhlal Signed-off-by: Glauber Costa CC: Christoph Lameter CC: