aboutsummaryrefslogtreecommitdiff
path: root/scripts/basic/docproc.c
diff options
context:
space:
mode:
authorChristoph Lameter <[email protected]>2011-01-10 10:15:15 -0600
committerPekka Enberg <[email protected]>2011-01-11 17:09:53 +0200
commit04d94879c8a4973b5499dc26b9d38acee8928791 (patch)
treef6220743a65a2ac24b783884593460cb0467ecc7 /scripts/basic/docproc.c
parent925268a06dc2b1ff7bfcc37419a6827a0e739639 (diff)
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: <[email protected]> # 2.6.37 Reported-and-tested-by: Bart Van Assche <[email protected]> Acked-by: David Rientjes <[email protected]> Signed-off-by: Christoph Lameter <[email protected]> Signed-off-by: Pekka Enberg <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions