[PATCH] slub: add lock debugging check

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Lameter <clameter@...>
Cc: Pekka Enberg <penberg@...>, Ingo Molnar <mingo@...>, Michal Piotrowski <michal.k.k.piotrowski@...>, Andrew Morton <akpm@...>, <linux-kernel@...>
Date: Thursday, July 26, 2007 - 2:01 pm

Ingo noticed that the SLUB code does include the lock debugging free
check.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Christoph Lameter <clameter@sgi.com>
---
 mm/slub.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6/mm/slub.c
===================================================================
--- linux-2.6.orig/mm/slub.c
+++ linux-2.6/mm/slub.c
@@ -1656,6 +1656,7 @@ static void __always_inline slab_free(st
 	unsigned long flags;
 
 	local_irq_save(flags);
+	debug_check_no_locks_freed(object, s->objsize);
 	if (likely(page == s->cpu_slab[smp_processor_id()] &&
 						!SlabDebug(page))) {
 		object[page->offset] = page->lockless_freelist;


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.23-rc1: known regressions with patches, Michal Piotrowski, (Mon Jul 23, 5:47 am)
Re: [bug] SLUB &amp; freeing locks [was: Re: 2.6.23-rc1: kno..., Christoph Lameter, (Thu Jul 26, 2:10 pm)
[PATCH] slub: fix bug in slub debug support, Peter Zijlstra, (Thu Jul 26, 2:54 pm)
Re: [bug] SLUB &amp; freeing locks [was: Re: 2.6.23-rc1: kno..., Christoph Lameter, (Thu Jul 26, 1:47 pm)
Re: [bug] SLUB &amp; freeing locks [was: Re: 2.6.23-rc1: kno..., Christoph Lameter, (Thu Jul 26, 1:51 pm)
[PATCH] slub: add lock debugging check, Peter Zijlstra, (Thu Jul 26, 2:01 pm)
Re: [bug] SLUB &amp; freeing locks [was: Re: 2.6.23-rc1: kno..., Christoph Lameter, (Thu Jul 26, 1:47 pm)
Re: 2.6.23-rc1: known regressions with patches, Tejun Heo, (Tue Jul 24, 2:21 am)
Re: 2.6.23-rc1: known regressions with patches, Greg KH, (Mon Jul 23, 6:59 pm)
Re: 2.6.23-rc1: known regressions with patches, Michal Piotrowski, (Tue Jul 24, 5:57 pm)
Re: 2.6.23-rc1: known regressions with patches, Ingo Molnar, (Mon Jul 23, 6:25 am)