diff options
author | Pekka Enberg <penberg@kernel.org> | 2011-01-15 12:28:17 +0100 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2011-01-15 12:28:17 +0100 |
commit | 597fb188cbee2d371246e1669bbc6051bb666aa9 (patch) | |
tree | fd9cb605050ca15274cf391dc6bd4073d04808df /mm/slub.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-post-merge-2.6 (diff) | |
parent | slub: Avoid use of slub_lock in show_slab_objects() (diff) | |
download | linux-597fb188cbee2d371246e1669bbc6051bb666aa9.tar.xz linux-597fb188cbee2d371246e1669bbc6051bb666aa9.zip |
Merge branch 'slub/hotplug' into slab/urgent
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c index c7ef0070dd86..e15aa7f193c9 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -3797,7 +3797,7 @@ static ssize_t show_slab_objects(struct kmem_cache *s, } } - down_read(&slub_lock); + lock_memory_hotplug(); #ifdef CONFIG_SLUB_DEBUG if (flags & SO_ALL) { for_each_node_state(node, N_NORMAL_MEMORY) { @@ -3838,7 +3838,7 @@ static ssize_t show_slab_objects(struct kmem_cache *s, x += sprintf(buf + x, " N%d=%lu", node, nodes[node]); #endif - up_read(&slub_lock); + unlock_memory_hotplug(); kfree(nodes); return x + sprintf(buf + x, "\n"); } |