projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b7b284
)
SLAB: Fix lockdep annotation breakage
author
Pekka Enberg
<
[email protected]
>
Sun, 27 Dec 2009 12:33:14 +0000
(14:33 +0200)
committer
Pekka Enberg
<
[email protected]
>
Mon, 28 Dec 2009 18:57:27 +0000
(20:57 +0200)
Commit
ce79ddc8e2376a9a93c7d42daf89bfcbb9187e62
("SLAB: Fix lockdep annotations
for CPU hotplug") broke init_node_lock_keys() off-slab logic which causes
lockdep false positives.
Fix that up by reverting the logic back to original while keeping CPU hotplug
fixes intact.
Reported-and-tested-by: Heiko Carstens <
[email protected]
>
Reported-and-tested-by: Andi Kleen <
[email protected]
>
Signed-off-by: Pekka Enberg <
[email protected]
>
mm/slab.c
patch
|
blob
|
history
diff --git
a/mm/slab.c
b/mm/slab.c
index 7d41f15b48d37ad45d9184441b5daf3640afd6bb..7451bdacaf18875044ea97ed3d49da8c401d8249 100644
(file)
--- a/
mm/slab.c
+++ b/
mm/slab.c
@@
-654,7
+654,7
@@
static void init_node_lock_keys(int q)
l3 = s->cs_cachep->nodelists[q];
if (!l3 || OFF_SLAB(s->cs_cachep))
-
return
;
+
continue
;
lockdep_set_class(&l3->list_lock, &on_slab_l3_key);
alc = l3->alien;
/*
@@
-665,7
+665,7
@@
static void init_node_lock_keys(int q)
* for alloc_alien_cache,
*/
if (!alc || (unsigned long)alc == BAD_ALIEN_MAGIC)
-
return
;
+
continue
;
for_each_node(r) {
if (alc[r])
lockdep_set_class(&alc[r]->lock,