diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2890,7 +2890,13 @@ static void early_kmem_cache_node_alloc(int node) | |||
2890 | init_kmem_cache_node(n); | 2890 | init_kmem_cache_node(n); |
2891 | inc_slabs_node(kmem_cache_node, node, page->objects); | 2891 | inc_slabs_node(kmem_cache_node, node, page->objects); |
2892 | 2892 | ||
2893 | /* | ||
2894 | * the lock is for lockdep's sake, not for any actual | ||
2895 | * race protection | ||
2896 | */ | ||
2897 | spin_lock(&n->list_lock); | ||
2893 | add_partial(n, page, DEACTIVATE_TO_HEAD); | 2898 | add_partial(n, page, DEACTIVATE_TO_HEAD); |
2899 | spin_unlock(&n->list_lock); | ||
2894 | } | 2900 | } |
2895 | 2901 | ||
2896 | static void free_kmem_cache_nodes(struct kmem_cache *s) | 2902 | static void free_kmem_cache_nodes(struct kmem_cache *s) |