[PATCH] nvme-pci: take sglist coalescing in dma_map_sg into account

Christoph Hellwig hch at lst.de
Tue Jan 16 06:16:47 PST 2018


On Mon, Jan 15, 2018 at 06:50:16PM -0700, Keith Busch wrote:
> > Reported-by: Fangjian (Turing) <f.fangjian at huawei.com>
> > Fixes: a7a7cbe3 ("nvme-pci: add SGL support")
> > Signed-off-by: Christoph Hellwig <hch at lst.de>
> 
> This looks fine, but I think keeping tabs on on the mapped length wouldn't
> hurt since a mismatch is a software bug that would be difficult to debug
> later. But if you trust it's not necessary, that's good enough for me.

Which mismatch?  req vs mapped scatterlist?  I think such a bug
would show up instantly in every driver..



More information about the Linux-nvme mailing list