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)
commit19c7ff9ecd89441096dab6a56f926f7df8ba850a
tree61bc27b47eb4867252b4d6aaa9c0ae99994b7556
parent455ce9eb1cfa083da0def023094190aeb133855a
slub: Take node lock during object free checks

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