From: Peter Zijlstra Date: Thu, 26 Jul 2007 18:01:38 +0000 (+0200) Subject: slub: add lock debugging check X-Git-Tag: v2.6.23-rc2~152^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02febdf7f62f2fbfa89ca9dc5d929beea89c96b1;p=linux-2.6 slub: add lock debugging check Ingo noticed that the SLUB code does include the lock debugging free check. Signed-off-by: Peter Zijlstra Acked-by: Ingo Molnar Acked-by: Pekka Enberg Signed-off-by: Christoph Lameter --- diff --git a/mm/slub.c b/mm/slub.c index 9b2d6178d0..221809f1c1 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1656,6 +1656,7 @@ static void __always_inline slab_free(struct kmem_cache *s, 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;