Re: [PATCH RFC 1/2] scatterlist: add mempool based chained SG alloc/free api

From: Christoph Hellwig
Date: Mon Mar 21 2016 - 10:49:00 EST


On Sun, Mar 20, 2016 at 11:55:17PM -0700, Ming Lin wrote:
> On Wed, 2016-03-16 at 09:23 +0100, Christoph Hellwig wrote:
> > > 
> > We can defintively kill this one.
>
> We want to support different size of pools.
> How can we kill this one?
>
> Or did you mean we just create a single pool with size SG_CHUNK_SIZE?

I mean just killing the SG_MEMPOOL_NR define and using the ARRAY_SIZE
directly.

> I created lib/sg_pool.c with CONFIG_SG_POOL.

Great!