summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2011-01-10 17:15:15 +0100
committerPekka Enberg <penberg@kernel.org>2011-01-11 16:09:53 +0100
commit04d94879c8a4973b5499dc26b9d38acee8928791 (patch)
treef6220743a65a2ac24b783884593460cb0467ecc7 /include
parentmemory hotplug: one more lock on memory hotplug (diff)
downloadlinux-04d94879c8a4973b5499dc26b9d38acee8928791.tar.xz
linux-04d94879c8a4973b5499dc26b9d38acee8928791.zip
slub: Avoid use of slub_lock in show_slab_objects()
The purpose of the locking is to prevent removal and additions of nodes when statistics are gathered for a slab cache. So we need to avoid racing with memory hotplug functionality. It is enough to take the memory hotplug locks there instead of the slub_lock. online_pages() currently does not acquire the memory_hotplug lock. Another patch will be submitted by the memory hotplug authors to take the memory hotplug lock and describe the uses of the memory hotplug lock to protect against adding and removal of nodes from non hotplug data structures. Cc: <stable@kernel.org> # 2.6.37 Reported-and-tested-by: Bart Van Assche <bvanassche@acm.org> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions