Re: [PATCH 4/7] slub: fix error path bug in kmem_cache_alloc_bulk

2015-06-16 Thread Jesper Dangaard Brouer
On Tue, 16 Jun 2015 14:51:09 -0700 Andrew Morton wrote: > On Mon, 15 Jun 2015 17:52:26 +0200 Jesper Dangaard Brouer > wrote: > > > The current kmem_cache/SLAB bulking API need to release all objects > > in case the layer cannot satisfy the full request. > > > > If __kmem_cache_alloc_bulk() fa

Re: [PATCH 4/7] slub: fix error path bug in kmem_cache_alloc_bulk

2015-06-16 Thread Andrew Morton
On Mon, 15 Jun 2015 17:52:26 +0200 Jesper Dangaard Brouer wrote: > The current kmem_cache/SLAB bulking API need to release all objects > in case the layer cannot satisfy the full request. > > If __kmem_cache_alloc_bulk() fails, all allocated objects in array > should be freed, but, __kmem_cache

[PATCH 4/7] slub: fix error path bug in kmem_cache_alloc_bulk

2015-06-15 Thread Jesper Dangaard Brouer
The current kmem_cache/SLAB bulking API need to release all objects in case the layer cannot satisfy the full request. If __kmem_cache_alloc_bulk() fails, all allocated objects in array should be freed, but, __kmem_cache_alloc_bulk() can't know about objects allocated by this slub specific kmem_ca