Re: slub: free slabs without holding locks (V2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 14, 2011 at 6:35 PM, Christoph Lameter <cl@xxxxxxxxx> wrote:
> There are two situations in which slub holds a lock while releasing
> pages:
>
>        A. During kmem_cache_shrink()
>        B. During kmem_cache_close()
>
> For A build a list while holding the lock and then release the pages
> later. In case of B we are the last remaining user of the slab so
> there is no need to take the listlock.
>
> After this patch all calls to the page allocator to free pages are
> done without holding any locks.
>
> V1->V2. Remove kfree. Avoid locking in free_partial. Drop slub_lock
> too.
>
> Signed-off-by: Christoph Lameter <cl@xxxxxxxxx>

I'd like to merge this patch but it doesn't apply on top of Linus'
tree. Care to resend?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]