Re: slab allocators: Remove SLAB_DEBUG_INITIAL flag

2007-04-22 Thread Christoph Lameter
On Sun, 22 Apr 2007, Andrew Morton wrote: > This patch causes a use-uninitialised crash in the locks code. Sigh. The only case in which the check is inverted in a constructor. Invert the check. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Index: linux-2.6.21-rc6/fs/locks.c

Re: slab allocators: Remove SLAB_DEBUG_INITIAL flag

2007-04-22 Thread Andrew Morton
On Fri, 20 Apr 2007 18:39:43 -0700 (PDT) Christoph Lameter <[EMAIL PROTECTED]> wrote: > I have never seen a use of SLAB_DEBUG_INITIAL. It is only supported by SLAB. > > I think its purpose was to have a callback after an object has been freed > to verify that the state is the constructor state a

slab allocators: Remove SLAB_DEBUG_INITIAL flag

2007-04-20 Thread Christoph Lameter
I have never seen a use of SLAB_DEBUG_INITIAL. It is only supported by SLAB. I think its purpose was to have a callback after an object has been freed to verify that the state is the constructor state again? The callback is performed before each freeing of an object. I would think that it is much