aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2012-10-16 17:00:19 -0400
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2013-02-06 12:02:16 -0500
commitfe9d6a8c0861ae9b01a6bd9c84b73656e52802d8 (patch)
tree7155ccf79a0c90f43f93efa1c4c998fd1c27a5da
parentaa2affb66b00eed79b29f34c589f35b5b61af74e (diff)
slab: Fix up stable merge of slab init_lock_keys()
There was a stable fix that moved the init_lock_keys() to after the enable_cpucache(). But -rt changed this function to init_cachep_lock_keys(). This moves the init afterwards to match the stable fix. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--mm/slab.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 81d3481b7eb3..fff347f5913c 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1747,15 +1747,12 @@ void __init kmem_cache_init_late(void)
/* 6) resize the head arrays to their final sizes */
mutex_lock(&cache_chain_mutex);
list_for_each_entry(cachep, &cache_chain, next) {
- init_cachep_lock_keys(cachep);
if (enable_cpucache(cachep, GFP_NOWAIT))
BUG();
+ init_cachep_lock_keys(cachep);
}
mutex_unlock(&cache_chain_mutex);
- /* Annotate slab for lockdep -- annotate the malloc caches */
- init_lock_keys();
-
/* Done! */
g_cpucache_up = FULL;