• Christoph Lameter's avatar
    slub: Allow removal of slab caches during boot · 2bce6485
    Christoph Lameter authored
    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: default avatarChristoph Lameter <cl@linux-foundation.org>
    Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
    2bce6485
slub.c 109 KB