Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02febdf7 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Christoph Lameter
Browse files

slub: add lock debugging check



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

Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Acked-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
parent 9c837fb6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;