alinux: nvme: pci: Fix the incorrect ways to calculate the request size
fix #29375191 For NVMe discard request, it will use special_vec to describe the size of the request, thus it will get an incorrect request size with blk_rq_bytes() when handling the NVMe discard request. Thus we should use blk_rq_payload_bytes() to calculate the data transfer size which can fix this issue. Fixes: 220741e8c12d ("alios: nvme-pci: Improve mapping single segment requests using SGLs") Signed-off-by: NBaolin Wang <baolin.wang@linux.alibaba.com> Acked-by: NXiaoguang Wang <xiaoguang.wang@linux.alibaba.com> Reviewed-by: NJiufei Xue <jiufei.xue@linux.alibaba.com>
Showing
想要评论请 注册 或 登录