slub: Fix debugobjects with lockless fastpath

On Thu, 24 Mar 2011, Ingo Molnar wrote:
> RIP: 0010:[<ffffffff810570a9>] [<ffffffff810570a9>] get_next_timer_interrupt+0x119/0x260

That's a typical timer crash, but you were unable to debug it with
debugobjects because commit d3f661d6 broke those.

Cc: Christoph Lameter <cl@linux.com>
Tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Pekka Enberg <penberg@kernel.org>

authored by Thomas Gleixner and committed by Pekka Enberg f9b615de 6d1e9a42

+2 -2
+2 -2
mm/slub.c
··· 849 849 local_irq_save(flags); 850 850 kmemcheck_slab_free(s, x, s->objsize); 851 851 debug_check_no_locks_freed(x, s->objsize); 852 - if (!(s->flags & SLAB_DEBUG_OBJECTS)) 853 - debug_check_no_obj_freed(x, s->objsize); 854 852 local_irq_restore(flags); 855 853 } 856 854 #endif 855 + if (!(s->flags & SLAB_DEBUG_OBJECTS)) 856 + debug_check_no_obj_freed(x, s->objsize); 857 857 } 858 858 859 859 /*