mm, sl[aou]b: Move kmem_cache_create mutex handling to common code
authorChristoph Lameter <cl@linux.com>
Fri, 6 Jul 2012 20:25:13 +0000 (15:25 -0500)
committerPekka Enberg <penberg@kernel.org>
Mon, 9 Jul 2012 09:13:42 +0000 (12:13 +0300)
commit20cea9683ecc6dd75a80c0dd02dc69c64e95be75
treec52994730d2d280f9300197cc4f561b15e3dd4b2
parent18004c5d4084d965aa1396392706b8688306427a
mm, sl[aou]b: Move kmem_cache_create mutex handling to common code

Move the mutex handling into the common kmem_cache_create()
function.

Then we can also move more checks out of SLAB's kmem_cache_create()
into the common code.

Reviewed-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slab.c
mm/slab_common.c
mm/slub.c