slub: Get rid of slab_free_hook_irq()
authorChristoph Lameter <cl@linux.com>
Fri, 25 Feb 2011 17:38:52 +0000 (11:38 -0600)
committerPekka Enberg <penberg@kernel.org>
Fri, 11 Mar 2011 15:42:49 +0000 (17:42 +0200)
commitd3f661d69a486db0e0e6343b452f45d91b4b3656
tree4b4c882c8690b52b922214f5864d9a678c0c2a06
parent1a757fe5d4234293d6a3acccd7196f1386443956
slub: Get rid of slab_free_hook_irq()

The following patch will make the fastpaths lockless and will no longer
require interrupts to be disabled. Calling the free hook with irq disabled
will no longer be possible.

Move the slab_free_hook_irq() logic into slab_free_hook. Only disable
interrupts if the features are selected that require callbacks with
interrupts off and reenable after calls have been made.

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c