Bart Van Assche cbe095e2b5 Revert "scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte()"
The description of commit e39a97353e53 is wrong: it mentions that commit
2a842acab109 introduced a bug in __scsi_error_from_host_byte() although that
commit did not change the behavior of that function.  Additionally, commit
e39a97353e53 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: e39a97353e53 ("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>
2018-04-09 21:31:37 -04:00
..
2018-04-03 17:38:39 -07:00
2018-03-15 00:35:43 -04:00
2018-04-03 17:38:39 -07:00
2018-01-22 20:03:57 -05:00
2018-04-03 17:38:39 -07:00
2018-04-05 15:05:53 -07:00
2018-04-05 15:05:53 -07:00
2017-12-18 13:55:43 -07:00
2018-04-05 15:05:53 -07:00
2018-04-03 17:38:39 -07:00
2018-04-05 15:05:53 -07:00
2018-04-03 17:38:39 -07:00
2017-12-04 20:32:53 -05:00
2017-12-04 20:32:53 -05:00
2017-08-25 17:21:11 -04:00
2017-08-24 22:29:06 -04:00
2018-04-05 15:05:53 -07:00
2018-04-03 17:38:39 -07:00
2017-08-25 17:21:10 -04:00
2018-03-12 21:16:58 -04:00
2018-04-05 14:27:02 -07:00
2018-03-19 22:54:47 -04:00
2018-04-03 17:38:39 -07:00
2017-11-14 16:23:44 -08:00
2018-04-05 15:05:53 -07:00
2018-04-03 17:38:39 -07:00
2017-11-14 16:23:44 -08:00
2018-04-05 15:05:53 -07:00
2017-11-14 16:23:44 -08:00
2018-04-03 17:38:39 -07:00
2018-04-05 14:27:02 -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
2017-04-26 18:32:29 -04:00
2018-04-03 17:38:39 -07:00