[PATCH V3] nvmet: add simple file backed ns support

Christoph Hellwig hch at lst.de
Thu May 10 10:40:45 PDT 2018


On Wed, May 09, 2018 at 08:59:39PM -0700, chaitany kulkarni wrote:
> Also for bvec_alloc() we have to maintain the mempool_t, can we not
> add more members
> when we can get away with kmalloc_array()?
> 
> Do you see any performance advantage/difference when using
> bvec_alloc() vs kmalloc_array()?

The mempool is required to make guranteed forward progress under
memory reclaim.  For nvmet this only really matters for nvme-loop,
but I suspect we should still fix it.

Just use a global mempool - bvec_alloc isn't even exported and I'd
like to keep it this way.  One easy way to piggy back on the block
layer would be to always allocate bios, even for the file backed
code and then just use the bvecs.



More information about the Linux-nvme mailing list