Re: [PATCH V3] scsi: save/restore command resid for error handling

2019-10-03 Thread Martin K. Petersen
Damien, > When a non-passthrough command is terminated with CHECK CONDITION, > request sense is executed by hijacking the command descriptor. [...] Applied to 5.4/scsi-fixes. Thanks for debugging this issue! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH V3] scsi: save/restore command resid for error handling

2019-10-02 Thread Bart Van Assche
On 10/1/19 12:48 AM, Damien Le Moal wrote: When a non-passthrough command is terminated with CHECK CONDITION, request sense is executed by hijacking the command descriptor. Since scsi_eh_prep_cmnd() and scsi_eh_restore_cmnd() do not save/restore the original command resid, the value returned on f

[PATCH V3] scsi: save/restore command resid for error handling

2019-10-01 Thread Damien Le Moal
When a non-passthrough command is terminated with CHECK CONDITION, request sense is executed by hijacking the command descriptor. Since scsi_eh_prep_cmnd() and scsi_eh_restore_cmnd() do not save/restore the original command resid, the value returned on failure of the original command is lost and re