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-09 21:08:30 -04:00
2018-04-03 17:38:39 -07:00
2017-11-21 16:35:54 -08:00
2018-03-21 18:46:30 -04:00
2018-01-22 20:04:01 -05:00
2017-11-21 16:35:54 -08:00
2018-03-15 00:35:43 -04:00
2018-01-30 21:27:02 -05:00
2018-01-04 01:13:28 -05:00
2018-04-03 17:38:39 -07:00
2018-01-08 21:45:48 -05:00
2018-01-10 23:24:58 -05:00
2018-04-03 17:38:39 -07:00
2017-06-20 12:18:27 +02:00
2018-03-19 22:54:47 -04:00
2017-11-21 15:57:07 -08:00
2018-01-22 20:03:57 -05:00
2018-03-21 18:34:21 -04:00
2018-03-15 00:52:33 -04:00
2017-12-04 22:56:04 -05:00
2018-02-13 21:37:06 -05:00
2018-02-13 21:37:01 -05:00
2018-04-03 17:38:39 -07:00
2018-03-14 23:36:37 -04:00
2018-04-05 15:05:53 -07:00
2018-04-05 15:05:53 -07:00
2018-03-01 21:07:48 -05:00
2017-12-18 13:55:43 -07:00
2018-03-19 22:54:47 -04:00
2017-11-21 16:35:54 -08:00
2018-02-13 21:37:02 -05:00
2018-04-05 15:05:53 -07:00
2018-04-09 21:04:36 -04:00
2018-04-03 17:38:39 -07:00
2018-04-05 15:05:53 -07:00
2017-11-02 11:10:55 +01:00
2018-03-26 11:13:09 +02:00
2018-04-03 17:38:39 -07:00
2017-10-25 05:40:22 -04:00
2017-12-04 20:32:53 -05: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-11-02 11:10:55 +01:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-08-24 22:29:07 -04:00
2017-11-02 11:10:55 +01:00
2018-03-15 00:26:54 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2018-03-01 21:10:36 -05:00
2017-11-02 11:10:55 +01:00
2017-08-24 22:29:06 -04:00
2017-11-02 11:10:55 +01:00
2017-10-27 02:22:00 -07:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2018-04-05 15:05:53 -07:00
2018-03-15 00:25:37 -04:00
2017-08-10 19:55:35 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-27 02:22:00 -07:00
2018-03-17 14:45:23 -06:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2018-04-09 16:34:41 -04:00
2017-10-25 04:55:18 -04:00
2018-04-03 17:38:39 -07:00
2018-03-14 23:31:13 -04:00
2017-08-25 17:21:10 -04:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2018-03-12 21:16:58 -04:00
2018-02-13 21:49:14 -05:00
2018-03-15 00:26:30 -04:00
2017-06-20 12:18:27 +02:00
2018-04-05 14:27:02 -07:00
2018-03-12 22:05:43 -04:00
2018-03-19 22:54:47 -04:00
2017-08-22 16:34:36 +02:00
2018-01-03 23:10:06 -05:00
2018-01-03 23:10:06 -05:00
2017-08-07 14:04:02 -04:00
2017-11-02 11:10:55 +01:00
2017-08-10 19:55:34 -04:00
2017-08-25 17:21:11 -04:00
2018-04-03 17:38:39 -07:00
2017-08-07 14:04:01 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-19 22:54:47 -04:00
2017-11-02 11:10:55 +01:00
2017-04-24 18:16:49 -04:00
2017-11-21 15:57:07 -08:00
2017-11-14 16:23:44 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-01 11:59:17 +02:00
2017-11-02 11:10:55 +01:00
2017-10-16 22:38:44 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-24 22:29:01 -04:00
2017-11-02 11:10:55 +01:00
2018-02-13 21:49:15 -05:00
2018-02-13 21:49:15 -05:00
2017-12-04 20:32:52 -05:00
2017-11-02 11:10:55 +01:00
2017-10-05 15:01:17 +02:00
2017-10-05 15:01:17 +02:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-08-28 22:15:46 -04:00
2017-11-02 11:10:55 +01:00
2018-02-12 11:43:25 -05:00
2017-12-11 21:39:39 -05:00
2018-04-05 15:05:53 -07:00
2018-01-08 22:27:32 -05:00
2017-04-26 15:09:04 -06:00
2018-03-21 18:34:23 -04:00
2018-04-09 16:35:12 -04:00
2018-04-03 17:38:39 -07:00
2017-08-25 17:08:07 -04:00
2017-11-02 11:10:55 +01:00
2018-04-09 21:31:37 -04:00
2017-11-14 16:23:44 -08:00
2017-12-07 21:13:45 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 22:30:24 -05:00
2018-04-05 15:05:53 -07:00
2017-11-02 11:10:55 +01:00
2018-01-03 22:51:02 -05:00
2017-11-14 16:23:44 -08:00
2018-03-13 11:40:24 -06:00
2018-02-15 18:20:14 -05:00
2017-11-07 09:04:32 -08:00
2018-02-27 22:26:12 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01: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
2017-11-02 11:10:55 +01:00
2017-12-04 22:55:59 -05:00
2018-02-11 14:34:03 -08:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-09 08:06:35 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-04 20:32:53 -05:00
2017-11-02 11:10:55 +01:00
2017-04-26 18:32:29 -04:00
2018-04-03 17:38:39 -07:00
2017-08-25 17:21:11 -04:00
2018-03-12 22:05:43 -04:00
2017-06-27 21:46:55 -04:00
2018-03-14 23:31:13 -04:00
2017-08-25 17:21:10 -04:00
2017-12-04 20:32:55 -05:00
2017-11-02 11:10:55 +01:00
2017-06-12 21:02:04 -04:00
2017-08-22 16:34:36 +02:00