Files
Bart Van Assche 80dc97f7e1 Revert "scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte()"
commit cbe095e2b5 upstream.

The description of commit e39a97353e is wrong: it mentions that commit
2a842acab1 introduced a bug in __scsi_error_from_host_byte() although that
commit did not change the behavior of that function.  Additionally, commit
e39a97353e introduced a bug: it causes commands that fail with
hostbyte=DID_OK and driverbyte=DRIVER_SENSE to be completed with
BLK_STS_OK. Hence revert that commit.

Fixes: e39a97353e ("scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte()")
Reported-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Douglas Gilbert <dgilbert@interlog.com>
Cc: Damien Le Moal <damien.lemoal@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Lee Duncan <lduncan@suse.com>
Cc: stable@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-19 08:54:10 +02:00
..
2018-01-30 22:26:14 -05:00
…
2018-01-22 20:03:57 -05:00
2017-12-18 13:55:43 -07:00
2017-12-04 20:32:53 -05:00
2017-12-04 20:32:53 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-03-14 23:31:13 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-09-07 12:12:43 -07:00
…
2018-01-08 22:27:32 -05:00
2018-02-11 14:34:03 -08:00
…
…
…
2017-12-04 20:32:53 -05:00
…
…
…
…
…