aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2007-07-26 14:01:38 -0400
committerChristoph Lameter <clameter@sgi.com>2007-07-30 15:12:39 -0400
commit02febdf7f62f2fbfa89ca9dc5d929beea89c96b1 (patch)
tree8138189066b52f8a4cc4b2ad7b82ce800def8bb9
parent9c837fb692b005203765d8a569a2fe43fdff9df1 (diff)
slub: add lock debugging check
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> Signed-off-by: Christoph Lameter <clameter@sgi.com>
-rw-r--r--mm/slub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 9b2d6178d06c..221809f1c135 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1656,6 +1656,7 @@ static void __always_inline slab_free(struct kmem_cache *s,
1656 unsigned long flags; 1656 unsigned long flags;
1657 1657
1658 local_irq_save(flags); 1658 local_irq_save(flags);
1659 debug_check_no_locks_freed(object, s->objsize);
1659 if (likely(page == s->cpu_slab[smp_processor_id()] && 1660 if (likely(page == s->cpu_slab[smp_processor_id()] &&
1660 !SlabDebug(page))) { 1661 !SlabDebug(page))) {
1661 object[page->offset] = page->lockless_freelist; 1662 object[page->offset] = page->lockless_freelist;