]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbae9a13f86bc706535fcbf26297805b282780680
tree61bc27b47eb4867252b4d6aaa9c0ae99994b7556
parent678f43e29decfb706d5006e01b2cc6861a10fd6b
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