Re: [RFC][PATCH 1/3] slub: Drop lock at the end of free_debug_processing
From: Christoph Lameter
Date: Tue Jan 26 2016 - 11:19:19 EST
On Mon, 25 Jan 2016, Laura Abbott wrote:
> Currently, free_debug_processing has a comment "Keep node_lock to preserve
> integrity until the object is actually freed". In actuallity,
> the lock is dropped immediately in __slab_free. Rather than wait until
> __slab_free and potentially throw off the unlikely marking, just drop
> the lock in __slab_free. This also lets free_debug_processing take
> its own copy of the spinlock flags rather than trying to share the ones
> from __slab_free. Since there is no use for the node afterwards, change
> the return type of free_debug_processing to return an int like
> alloc_debug_processing.
Acked-by: Christoph Lameter <cl@xxxxxxxxx>\