slub: Invert locking and avoid slab lock
authorChristoph Lameter <cl@linux.com>
Wed, 1 Jun 2011 17:25:53 +0000 (12:25 -0500)
committerPekka Enberg <penberg@kernel.org>
Sat, 2 Jul 2011 10:26:55 +0000 (13:26 +0300)
commit881db7fb03a77af0bcd460fd1de1f4062d5c18fe
tree281c07cf45aabd44962dbceed4efb1a86492115d
parent2cfb7455d223ab24b23df44be430faf92e12390f
slub: Invert locking and avoid slab lock

Locking slabs is no longer necesary if the arch supports cmpxchg operations
and if no debuggin features are used on a slab. If the arch does not support
cmpxchg then we fallback to use the slab lock to do a cmpxchg like operation.

The patch also changes the lock order. Slab locks are subsumed to the node lock
now. With that approach slab_trylocking is no longer necessary.

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