Re: [RFC PATCH 2/2] slab: implement bulk free in SLAB allocator

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

 



On Tue, 8 Dec 2015, Vladimir Davydov wrote:

> If producers are represented by different processes, they can belong to
> different memory cgroups, so that objects passed to the consumer will
> come from different kmem caches (per memcg caches), although they are
> all of the same kind. This means, we must call cache_from_obj() on each
> object passed to kmem_cache_free_bulk() in order to free each object to
> the cache it was allocated from.

The we should change the API so that we do not specify kmem_cache on bulk
free. Do it like kfree without any cache spec.

--
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/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[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]