[PATCH] NVMe: Fix IO for extended metadata formats

Christoph Hellwig hch at lst.de
Sun Jun 21 22:34:18 PDT 2015


On Fri, Jun 19, 2015 at 11:07:30AM -0600, Keith Busch wrote:
> This fixes io submit ioctl handling when using extended metadata
> formats. When these formats are used, the user provides a single virtually
> contiguous buffer containing both the block and metadata interleaved,
> so the metadata size needs to be added to the total length and not mapped
> as a separate transfer.
> 
> The command is also driver generated, so this patch does not enforce
> blk-integrity extensions provide the metadata buffer.

Does this actually work properly?  I'd assume the block layer might
not be too happy if we have weird arbitrary sizes for this additional
metadata.



More information about the Linux-nvme mailing list