diff options
| -rw-r--r-- | mm/slab.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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 |
