mm, sl[aou]b: Use a common mutex definition
authorChristoph Lameter <cl@linux.com>
Fri, 6 Jul 2012 20:25:12 +0000 (15:25 -0500)
committerPekka Enberg <penberg@kernel.org>
Mon, 9 Jul 2012 09:13:41 +0000 (12:13 +0300)
Use the mutex definition from SLAB and make it the common way to take a sleeping lock.

This has the effect of using a mutex instead of a rw semaphore for SLUB.

SLOB gains the use of a mutex for kmem_cache_create serialization.
Not needed now but SLOB may acquire some more features later (like slabinfo
/ sysfs support) through the expansion of the common code that will
need this.

Reviewed-by: Glauber Costa <glommer@parallels.com>
Reviewed-by: Joonsoo Kim <js1304@gmail.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>

No differences found