Re: Slab infrastructure for bulk object allocation and freeing V2

2015-04-06 Thread Christoph Lameter
On Thu, 2 Apr 2015, Andrew Morton wrote: > hm, OK. The per-allocator wrappers could be made static inline in .h > if that makes sense. The allocators will add code to the "per-allocator wrappers". Inlining that would be bad. Basicalkly the "wrapper" is the skeleon to which optimizations can be

Re: Slab infrastructure for bulk object allocation and freeing V2

2015-04-06 Thread Christoph Lameter
On Thu, 2 Apr 2015, Andrew Morton wrote: hm, OK. The per-allocator wrappers could be made static inline in .h if that makes sense. The allocators will add code to the per-allocator wrappers. Inlining that would be bad. Basicalkly the wrapper is the skeleon to which optimizations can be added

Re: Slab infrastructure for bulk object allocation and freeing V2

2015-04-02 Thread Andrew Morton
On Thu, 2 Apr 2015 09:25:37 -0500 (CDT) Christoph Lameter wrote: > > What's the reason for returning a partial result when ENOMEM? Some > > callers will throw away the partial result and simply fail out. If a > > caller attempts to go ahead and use the partial result then great, but > > you

Re: Slab infrastructure for bulk object allocation and freeing V2

2015-04-02 Thread Christoph Lameter
On Tue, 31 Mar 2015, Andrew Morton wrote: > This patch doesn't really do anything. I guess nailing down the > interface helps a bit. Right. > to modules. And it isn't completely obvious, because the return > semantics are weird. Ok. > What's the reason for returning a partial result when

Re: Slab infrastructure for bulk object allocation and freeing V2

2015-04-02 Thread Andrew Morton
On Thu, 2 Apr 2015 09:25:37 -0500 (CDT) Christoph Lameter c...@linux.com wrote: What's the reason for returning a partial result when ENOMEM? Some callers will throw away the partial result and simply fail out. If a caller attempts to go ahead and use the partial result then great, but

Re: Slab infrastructure for bulk object allocation and freeing V2

2015-04-02 Thread Christoph Lameter
On Tue, 31 Mar 2015, Andrew Morton wrote: This patch doesn't really do anything. I guess nailing down the interface helps a bit. Right. to modules. And it isn't completely obvious, because the return semantics are weird. Ok. What's the reason for returning a partial result when ENOMEM?

Re: Slab infrastructure for bulk object allocation and freeing V2

2015-03-31 Thread Andrew Morton
On Mon, 30 Mar 2015 09:31:19 -0500 (CDT) Christoph Lameter wrote: > After all of the earlier discussions I thought it would be better to > first get agreement on the basic way to allow implementation of the > bulk alloc in the common slab code. So this is a revision of the initial > proposal

Re: Slab infrastructure for bulk object allocation and freeing V2

2015-03-31 Thread Andrew Morton
On Mon, 30 Mar 2015 09:31:19 -0500 (CDT) Christoph Lameter c...@linux.com wrote: After all of the earlier discussions I thought it would be better to first get agreement on the basic way to allow implementation of the bulk alloc in the common slab code. So this is a revision of the initial

Re: Slab infrastructure for bulk object allocation and freeing V2

2015-03-30 Thread Jesper Dangaard Brouer
On Mon, 30 Mar 2015 09:31:19 -0500 (CDT) Christoph Lameter wrote: > After all of the earlier discussions I thought it would be better to > first get agreement on the basic way to allow implementation of the > bulk alloc in the common slab code. So this is a revision of the initial > proposal and

Slab infrastructure for bulk object allocation and freeing V2

2015-03-30 Thread Christoph Lameter
After all of the earlier discussions I thought it would be better to first get agreement on the basic way to allow implementation of the bulk alloc in the common slab code. So this is a revision of the initial proposal and it just covers the first patch. This patch adds the basic infrastructure

Slab infrastructure for bulk object allocation and freeing V2

2015-03-30 Thread Christoph Lameter
After all of the earlier discussions I thought it would be better to first get agreement on the basic way to allow implementation of the bulk alloc in the common slab code. So this is a revision of the initial proposal and it just covers the first patch. This patch adds the basic infrastructure

Re: Slab infrastructure for bulk object allocation and freeing V2

2015-03-30 Thread Jesper Dangaard Brouer
On Mon, 30 Mar 2015 09:31:19 -0500 (CDT) Christoph Lameter c...@linux.com wrote: After all of the earlier discussions I thought it would be better to first get agreement on the basic way to allow implementation of the bulk alloc in the common slab code. So this is a revision of the initial