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

Keith Busch keith.busch at intel.com
Tue Jan 16 06:36:58 PST 2018


On Tue, Jan 16, 2018 at 03:16:47PM +0100, Christoph Hellwig wrote:
> Which mismatch?  req vs mapped scatterlist?  I think such a bug
> would show up instantly in every driver..

I was thinking verify length == 0 after ending the while loop, which
would catch a broken scatter list. We have similiar checks for building
PRPs that have caught issues, but that's really only since PRPs are so
different. So, point taken and thanks for the explanation.

Reviewed-by: Keith Busch <keith.busch at intel.com>



More information about the Linux-nvme mailing list