]> nv-tegra.nvidia Code Review - linux-3.10.git/commit
SLUB: Make lockdep happy by not calling add_partial with interrupts enabled during...
authorChristoph Lameter <clameter@sgi.com>
Tue, 3 Jul 2007 16:31:04 +0000 (09:31 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 3 Jul 2007 20:56:13 +0000 (13:56 -0700)
commitdbc55faa64c12f4c9fab6e2bd131d771bc026ed1
treeb43ca5aa30dbfb9ab920db07039f8c76996fd17a
parent746976a301ac9c9aa10d7d42454f8d6cdad8ff2b
SLUB: Make lockdep happy by not calling add_partial with interrupts enabled during bootstrap

If we move the local_irq_enable() to the end of the function then
add_partial() in early_kmem_cache_node_alloc() will be called
with interrupts disabled like during regular operations.

This makes lockdep happy.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Tested-by: Andre Noll <maan@systemlinux.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c