scsi: mpi3mr: Fix reporting of actual data transfer size
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Thu, 10 Feb 2022 09:58:14 +0000 (15:28 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 11 Feb 2022 22:40:04 +0000 (17:40 -0500)
commit9992246127246a27cc7184f05cce6f62ac48f84e
tree792413ccaca4510e65a093755ab8e8855b3d4f7b
parentb3911ab3a76e216cd97c6fdc05132e57c3e6941c
scsi: mpi3mr: Fix reporting of actual data transfer size

The driver is missing to set the residual size while completing an
I/O. Ensure proper data transfer size is reported to the kernel on I/O
completion based on the transfer length reported by the firmware.

Link: https://lore.kernel.org/r/20220210095817.22828-7-sreekanth.reddy@broadcom.com
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_os.c