]> git.baikalelectronics.ru Git - kernel.git/commit
mm: slub: work around unneeded lockdep warning
authorDave Hansen <dave.hansen@linux.intel.com>
Fri, 24 Jan 2014 15:20:23 +0000 (07:20 -0800)
committerPekka Enberg <penberg@kernel.org>
Fri, 31 Jan 2014 11:41:26 +0000 (13:41 +0200)
commit349105e5a23fdaf82892072b7f9302162b706242
treec6c1b99a3483cd94481d72a35d16fe4243c329cc
parent481db38a5e5eb4d2ebd1180a0676b7d26a1b1075
mm: slub: work around unneeded lockdep warning

The slub code does some setup during early boot in
early_kmem_cache_node_alloc() with some local data.  There is no
possible way that another CPU can see this data, so the slub code
doesn't unnecessarily lock it.  However, some new lockdep asserts
check to make sure that add_partial() _always_ has the list_lock
held.

Just add the locking, even though it is technically unnecessary.

Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Russell King <linux@arm.linux.org.uk>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c