Re: [PATCHv2] scsi: Fix failed request error code

2018-04-04 Thread Douglas Gilbert
On 2018-04-04 03:27 AM, Hannes Reinecke wrote: With the introduction of commit e39a97353e53 ("scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte()"), a command that failed with hostbyte=DID_OK and driverbyte=DRIVER_SENSE but lacking additional sense information will have a

Re: [PATCHv2] scsi: Fix failed request error code

2018-04-04 Thread Bart Van Assche
On Wed, 2018-04-04 at 09:27 +0200, Hannes Reinecke wrote: > diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c > index 393f9db8f41b..9389c41e2829 100644 > --- a/drivers/scsi/scsi_lib.c > +++ b/drivers/scsi/scsi_lib.c > @@ -905,6 +905,12 @@ void scsi_io_completion(struct scsi_cmnd *cmd,