mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-16 23:20:03 +01:00
slub: add lock debugging check
Ingo noticed that the SLUB code does include the lock debugging free check. Signed-off-by: Peter Zijlstra <[email protected]> Acked-by: Ingo Molnar <[email protected]> Acked-by: Pekka Enberg <[email protected]> Signed-off-by: Christoph Lameter <[email protected]>
This commit is contained in:
1 parent
9c837fb692
commit
02febdf7f6
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user