Skip to content

Commit 4b60667

Browse files
committed
Merge branch 'slab/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux
Pull SLAB fix from Pekka Enberg: "A regression fix for overly eager slab cache name checks" * 'slab/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux: slab_common: Do not check for duplicate slab names
2 parents 35f9162 + 3e37491 commit 4b60667

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mm/slab_common.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ static int kmem_cache_sanity_check(struct mem_cgroup *memcg, const char *name,
5656
continue;
5757
}
5858

59+
#if !defined(CONFIG_SLUB) || !defined(CONFIG_SLUB_DEBUG_ON)
5960
/*
6061
* For simplicity, we won't check this in the list of memcg
6162
* caches. We have control over memcg naming, and if there
@@ -69,6 +70,7 @@ static int kmem_cache_sanity_check(struct mem_cgroup *memcg, const char *name,
6970
s = NULL;
7071
return -EINVAL;
7172
}
73+
#endif
7274
}
7375

7476
WARN_ON(strchr(name, ' ')); /* It confuses parsers */

0 commit comments

Comments
 (0)