diff options
author | Peter Zijlstra <peterz@infradead.org> | 2007-07-26 20:01:38 +0200 |
---|---|---|
committer | Christoph Lameter <clameter@sgi.com> | 2007-07-30 12:12:39 -0700 |
commit | 02febdf7f62f2fbfa89ca9dc5d929beea89c96b1 (patch) | |
tree | 8138189066b52f8a4cc4b2ad7b82ce800def8bb9 /mm/slub.c | |
parent | 9c837fb692b005203765d8a569a2fe43fdff9df1 (diff) | |
download | op-kernel-dev-02febdf7f62f2fbfa89ca9dc5d929beea89c96b1.zip op-kernel-dev-02febdf7f62f2fbfa89ca9dc5d929beea89c96b1.tar.gz |
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>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |