diff options
author | Christoph Lameter <cl@linux.com> | 2012-09-04 19:38:33 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-09-05 05:00:36 -0400 |
commit | 12c3667fb780e20360ad0bde32dfb3591ef609ad (patch) | |
tree | dbced65da22c85212bf632ff6953c0a94252c3ef /mm/slob.c | |
parent | 8f4c765c22deee766319ae9a1db68325f14816e6 (diff) |
mm/sl[aou]b: Get rid of __kmem_cache_destroy
What is done there can be done in __kmem_cache_shutdown.
This affects RCU handling somewhat. On rcu free all slab allocators do
not refer to other management structures than the kmem_cache structure.
Therefore these other structures can be freed before the rcu deferred
free to the page allocator occurs.
Reviewed-by: Joonsoo Kim <js1304@gmail.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slob.c')
-rw-r--r-- | mm/slob.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -538,10 +538,6 @@ struct kmem_cache *__kmem_cache_create(const char *name, size_t size, | |||
538 | return c; | 538 | return c; |
539 | } | 539 | } |
540 | 540 | ||
541 | void __kmem_cache_destroy(struct kmem_cache *c) | ||
542 | { | ||
543 | } | ||
544 | |||
545 | void *kmem_cache_alloc_node(struct kmem_cache *c, gfp_t flags, int node) | 541 | void *kmem_cache_alloc_node(struct kmem_cache *c, gfp_t flags, int node) |
546 | { | 542 | { |
547 | void *b; | 543 | void *b; |