[RFC PATCH] nvme-pci: Bounce buffer for interleaved metadata

Sagi Grimberg sagi at grimberg.me
Thu Mar 1 01:22:52 PST 2018


> Sagi,
> 
>> It makes sense for FC (and few RDMA devices) that already get
>> interleaved metadata from the wire to keep it as is instead of
>> scattering it if the backend nvme device supports interleaved mode...
> 
> Yeah, assuming that the PI doesn't have to get translated.

 From what I am aware of, devices can translate the PI and even the block
size and still keep it interleaved on the host memory layout. At least
that was the case in the one implementation I was involved with.

>> I would say that this support for this is something that belongs in
>> the block layer. IIRC mkp also expressed interest in using
>> preadv2/pwritev2 to for user-space to use DIF with some accounting on
>> the iovec
> 
> Indeed.
> 
>> so maybe we can add a flag for interleaved metadata.
> 
> What would the use case be for this? Userspace target driver? I know
> lots of widgets that rely on interleaved but they are all using SPDK.

Didn't came from me...



More information about the Linux-nvme mailing list