Thread (20 messages) 20 messages, 5 authors, 2012-05-24

Re: [PATCH] slab+slob: dup name string

From: Glauber Costa <hidden>
Date: 2012-05-22 15:21:54
Also in: linux-mm, lkml

On 05/22/2012 05:56 PM, Christoph Lameter wrote:
On Mon, 21 May 2012, David Rientjes wrote:
quoted
This doesn't work if you kmem_cache_destroy() a cache that was created
when g_cpucache_cpu<= EARLY, the kfree() will explode.  That never
happens for any existing cache created in kmem_cache_init(), but this
would introduce the first roadblock in doing so.  So you'll need some
magic to determine whether the cache was allocated statically and suppress
the kfree() in such a case.
Nope. Only slab management caches will be created that early. The patch is
fine as is.
I think that's precisely David's point: that we might want to destroy 
them eventually.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help