summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2012-10-16 17:00:19 -0400
committerSteven Rostedt <rostedt@rostedt.homelinux.com>2014-02-26 21:21:17 -0500
commit3752f158b53ec940ed80db3c48a5eddc31f00517 (patch)
tree2adfd6eae5dec0ad5f6e2f49a1b248e872304045 /mm
parentf7bd79711bb7b179f50384ac61309694568f4ee0 (diff)
downloadlinux-rt-3752f158b53ec940ed80db3c48a5eddc31f00517.tar.gz
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 119969a7fc74..27a194c696e6 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1763,15 +1763,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;