Martin Wilck
ebfb07e8c2
scsi: core: reset host byte in DID_NEXUS_FAILURE case
...
commit 4a067cf823 upstream.
Up to 4.12, __scsi_error_from_host_byte() would reset the host byte to
DID_OK for various cases including DID_NEXUS_FAILURE. Commit
2a842acab1 ("block: introduce new block status code type") replaced this
function with scsi_result_to_blk_status() and removed the host-byte
resetting code for the DID_NEXUS_FAILURE case. As the line
set_host_byte(cmd, DID_OK) was preserved for the other cases, I suppose
this was an editing mistake.
The fact that the host byte remains set after 4.13 is causing problems with
the sg_persist tool, which now returns success rather then exit status 24
when a RESERVATION CONFLICT error is encountered.
Fixes: 2a842acab1 "block: introduce new block status code type"
Signed-off-by: Martin Wilck <mwilck@suse.com >
Reviewed-by: Hannes Reinecke <hare@suse.com >
Reviewed-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-03-10 07:17:21 +01:00
..
2018-08-27 13:17:00 -04:00
2018-06-14 16:35:32 +09:00
2019-02-12 19:47:25 +01:00
2018-07-12 22:34:59 -04:00
2018-06-12 16:19:22 -07:00
2018-06-19 22:02:25 -04:00
2018-07-10 22:42:47 -04:00
2019-01-13 09:50:58 +01:00
2018-06-19 22:02:25 -04:00
2019-03-05 17:58:50 +01:00
2019-02-27 10:08:55 +01:00
2019-02-12 19:47:25 +01:00
2018-04-03 17:38:39 -07:00
2018-06-12 16:19:22 -07:00
2018-08-15 22:06:26 -07:00
2018-06-12 16:19:22 -07:00
2019-02-12 19:47:00 +01:00
2018-07-30 23:17:53 -04:00
2018-09-17 02:50:37 -04:00
2019-02-27 10:08:53 +01:00
2018-08-15 22:06:26 -07:00
2019-03-05 17:58:45 +01:00
2019-03-05 17:58:50 +01:00
2019-01-26 09:32:43 +01:00
2019-02-12 19:46:58 +01:00
2018-03-01 21:07:48 -05:00
2018-08-21 23:54:17 -04:00
2018-03-19 22:54:47 -04:00
2018-06-12 16:19:22 -07:00
2018-07-10 22:25:23 -04:00
2019-02-27 10:08:55 +01:00
2019-01-13 09:50:58 +01:00
2019-02-27 10:08:53 +01:00
2019-02-12 19:47:13 +01:00
2018-07-12 23:01:16 -04:00
2018-08-02 16:23:26 -04:00
2019-02-27 10:08:55 +01:00
2018-07-30 23:17:53 -04:00
2017-12-04 20:32:53 -05:00
2018-07-30 23:17:53 -04:00
2018-07-30 23:17:53 -04:00
2017-11-02 11:10:55 +01:00
2018-07-30 23:17:53 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-26 12:53:26 -04:00
2018-06-19 22:02:25 -04:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2018-05-01 23:29:41 -04:00
2018-07-30 23:17:53 -04:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2018-06-26 12:27:06 -04:00
2017-11-02 11:10:55 +01:00
2018-06-26 12:27:06 -04:00
2017-11-02 11:10:55 +01:00
2018-05-18 12:03:51 -04:00
2018-03-15 00:25:37 -04:00
2018-11-13 11:08:32 -08:00
2018-11-13 11:08:32 -08:00
2017-11-02 11:10:55 +01:00
2018-06-19 22:02:25 -04:00
2017-11-02 11:10:55 +01:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2017-11-02 11:10:55 +01:00
2018-08-27 13:17:00 -04:00
2018-08-27 12:26:10 -04:00
2018-07-10 22:25:03 -04:00
2018-06-26 12:27:07 -04:00
2017-11-02 11:10:55 +01:00
2018-09-21 12:35:39 -04:00
2018-09-21 12:35:39 -04:00
2018-04-20 19:40:17 -04:00
2018-04-20 19:40:17 -04:00
2018-04-19 00:00:44 -04:00
2018-03-12 22:05:43 -04:00
2018-08-27 12:26:10 -04:00
2018-06-19 22:02:25 -04:00
2018-12-21 14:15:13 +01:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-11-13 11:08:32 -08:00
2018-08-15 22:06:26 -07:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2018-06-26 12:27:07 -04: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
2018-06-10 13:01:12 -07:00
2018-07-10 22:42:47 -04:00
2017-11-14 16:23:44 -08:00
2017-11-02 11:10:55 +01:00
2018-06-19 22:02:25 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07: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-11-02 11:10:55 +01:00
2018-06-26 12:53:26 -04:00
2017-11-02 11:10:55 +01:00
2018-12-19 19:19:49 +01:00
2017-12-11 21:39:39 -05:00
2018-08-15 22:06:26 -07:00
2018-04-20 19:14:28 -04:00
2018-04-20 19:14:36 -04:00
2018-04-18 19:34:08 -04:00
2018-08-15 22:06:26 -07:00
2018-06-26 12:27:06 -04:00
2017-11-02 11:10:55 +01:00
2019-03-10 07:17:21 +01:00
2017-11-14 16:23:44 -08:00
2019-01-22 21:40:32 +01: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
2018-06-26 12:27:06 -04:00
2018-08-02 15:53:36 -04:00
2017-11-02 11:10:55 +01:00
2018-08-15 22:06:26 -07:00
2018-05-29 13:00:25 -06:00
2018-06-10 13:01:12 -07:00
2018-06-26 12:27:06 -04:00
2018-06-04 07:58:06 -07:00
2018-06-26 12:53:26 -04:00
2018-06-19 22:02:25 -04:00
2017-11-02 11:10:55 +01:00
2018-07-30 08:27:02 -06:00
2018-08-15 22:06:26 -07:00
2019-02-20 10:25:48 +01:00
2018-07-30 08:27:02 -06:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2018-08-15 22:06:26 -07:00
2018-08-02 15:22:13 -06:00
2017-11-02 11:10:55 +01:00
2018-08-03 13:53:51 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-08-08 21:15:54 -04:00
2017-11-02 11:10:55 +01:00
2018-07-03 13:02:28 +02:00
2018-03-12 22:05:43 -04:00
2018-07-26 15:49:43 -06:00
2018-12-21 14:15:13 +01:00
2018-05-01 23:30:12 -04:00
2017-11-02 11:10:55 +01:00
2018-06-19 14:54:41 +02:00
2018-04-19 00:00:44 -04:00