slub: Take node lock during object free checks
authorChristoph Lameter <cl@linux.com>
Wed, 30 May 2012 17:54:46 +0000 (12:54 -0500)
committerPekka Enberg <penberg@kernel.org>
Thu, 16 Aug 2012 06:45:04 +0000 (09:45 +0300)
Only applies to scenarios where debugging is on:

Validation of slabs can currently occur while debugging
information is updated from the fast paths of the allocator.
This results in various races where we get false reports about
slab metadata not being in order.

This patch makes the fast paths take the node lock so that
serialization with slab validation will occur. Causes additional
slowdown in debug scenarios.

Reported-by: Waiman Long <Waiman.Long@hp.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c

diff --cc mm/slub.c
Simple merge