]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Slab allocators: Drop support for destructors
authorChristoph Lameter <clameter@sgi.com>
Thu, 17 May 2007 05:10:50 +0000 (22:10 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 17 May 2007 12:23:03 +0000 (05:23 -0700)
commitc59def9f222d44bb7e2f0a559f2906191a0862d7
tree51bc0c12906b13887c6e53d1e06b48b411443129
parentafc0cedbe9138e3e8b38bfa1e4dfd01a2c537d62
Slab allocators: Drop support for destructors

There is no user of destructors left.  There is no reason why we should keep
checking for destructors calls in the slab allocators.

The RFC for this patch was discussed at
http://marc.info/?l=linux-kernel&m=117882364330705&w=2

Destructors were mainly used for list management which required them to take a
spinlock.  Taking a spinlock in a destructor is a bit risky since the slab
allocators may run the destructors anytime they decide a slab is no longer
needed.

Patch drops destructor support.  Any attempt to use a destructor will BUG().

Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/slub_def.h
mm/slab.c
mm/slob.c
mm/slub.c