]> git.baikalelectronics.ru Git - kernel.git/commit
slub: Allow removal of slab caches during boot
authorChristoph Lameter <cl@linux-foundation.org>
Mon, 19 Jul 2010 16:39:11 +0000 (11:39 -0500)
committerPekka Enberg <penberg@cs.helsinki.fi>
Tue, 3 Aug 2010 04:28:32 +0000 (07:28 +0300)
commitb012c8e0e1db4aeaf6c68dfb928b481215f99df2
treef9a097d8da73f33703622d8ef4237997248b6f39
parent269504331ccd523daf161982324b16e3f1c74bf2
slub: Allow removal of slab caches during boot

Serialize kmem_cache_create and kmem_cache_destroy using the slub_lock. Only
possible after the use of the slub_lock during dynamic dma creation has been
removed.

Then make sure that the setup of the slab sysfs entries does not race
with kmem_cache_create and kmem_cache destroy.

If a slab cache is removed before we have setup sysfs then simply skip over
the sysfs handling.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Roland Dreier <rdreier@cisco.com>
Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c