• M
    mm/slab_common: don't check for duplicate cache names · 8aba7e0a
    Mikulas Patocka 提交于
    The SLUB cache merges caches with the same size and alignment and there
    was long standing bug with this behavior:
    
     - create the cache named "foo"
     - create the cache named "bar" (which is merged with "foo")
     - delete the cache named "foo" (but it stays allocated because "bar"
       uses it)
     - create the cache named "foo" again - it fails because the name "foo"
       is already used
    
    That bug was fixed in commit 69461747 ("slab_common: fix the check
    for duplicate slab names") by not warning on duplicate cache names when
    the SLUB subsystem is used.
    
    Recently, cache merging was implemented the with SLAB subsystem too, in
    12220dea ("mm/slab: support slab merge")).  Therefore we need stop
    checking for duplicate names even for the SLAB subsystem.
    
    This patch fixes the bug by removing the check.
    Signed-off-by: NMikulas Patocka <mpatocka@redhat.com>
    Acked-by: NChristoph Lameter <cl@linux.com>
    Cc: Pekka Enberg <penberg@kernel.org>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    8aba7e0a
slab_common.c 23.6 KB