aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/slab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 0703578fb4d7..6d90a091fdca 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1666,6 +1666,9 @@ void __init kmem_cache_init_late(void)
1666{ 1666{
1667 struct kmem_cache *cachep; 1667 struct kmem_cache *cachep;
1668 1668
1669 /* Annotate slab for lockdep -- annotate the malloc caches */
1670 init_lock_keys();
1671
1669 /* 6) resize the head arrays to their final sizes */ 1672 /* 6) resize the head arrays to their final sizes */
1670 mutex_lock(&cache_chain_mutex); 1673 mutex_lock(&cache_chain_mutex);
1671 list_for_each_entry(cachep, &cache_chain, next) 1674 list_for_each_entry(cachep, &cache_chain, next)
@@ -1676,9 +1679,6 @@ void __init kmem_cache_init_late(void)
1676 /* Done! */ 1679 /* Done! */
1677 g_cpucache_up = FULL; 1680 g_cpucache_up = FULL;
1678 1681
1679 /* Annotate slab for lockdep -- annotate the malloc caches */
1680 init_lock_keys();
1681
1682 /* 1682 /*
1683 * Register a cpu startup notifier callback that initializes 1683 * Register a cpu startup notifier callback that initializes
1684 * cpu_cache_get for all new cpus 1684 * cpu_cache_get for all new cpus