]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae1a9c42b01009e570f1bb08031f2fadb9d26362
treec52994730d2d280f9300197cc4f561b15e3dd4b2
parent0827518a01cb1b95d7c78362d849922151c528c3
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