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>