Re: [PATCH] scsi: esp_scsi: report the residual byte count

From: Martin K. Petersen

Date: Thu Nov 19 2026 - 21:40:39 EST



Tim,

> The ESP core tracks the number of bytes left to transfer in tot_residue
> but does not report that count to the SCSI midlayer. As a result, SG_IO
> returns a residual of zero even when a target transfers fewer bytes than
> requested, as can happen with INQUIRY and MODE SENSE.

Applied to 7.5/scsi-staging, thanks!

--
Martin K. Petersen