[bug report] nvme sends invalid command capsule over rdma transport for 5KiB write when target supports MSDBD > 1

Christoph Hellwig hch at infradead.org
Wed May 26 09:00:07 PDT 2021


On Wed, May 26, 2021 at 05:49:41PM +0300, Max Gurtovoy wrote:
> > We do need for_each_sg here indeed, but you also need to keep
> > incrementing sge for each loop iteration.  I think we can also
> > drop the scat local variable with just a single users and all the
> > renaming while we're at it.
> 
> Is the above fixing the issue ?
> 
> Seems like code refactoring to me, right ?

It fixes support for chained SGLs when using inline segments.  Not sure
if it fixes the original bug report, but the current code is broken.



More information about the Linux-nvme mailing list