Ulrich Obergfell 8922a90890 scsi_error: fix invalid setting of host byte
After scsi_try_to_abort_cmd returns, the eh_abort_handler may have
already found that the command has completed in the device, causing
the host_byte to be nonzero (e.g. it could be DID_ABORT).  When
this happens, ORing DID_TIME_OUT into the host byte will corrupt
the result field and initiate an unwanted command retry.

Fix this by using set_host_byte instead, following the model of
commit 2082ebc45af9c9c648383b8cde0dc1948eadbf31.

Cc: stable@vger.kernel.org
Signed-off-by: Ulrich Obergfell <uobergfe@redhat.com>
[Fix all instances according to review comments. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
2014-06-24 17:00:12 +02:00
..
2014-06-09 18:54:06 -07:00
2014-06-09 18:54:06 -07:00
2014-05-19 19:12:23 +02:00
2014-04-18 14:20:48 +02:00
2014-04-01 18:49:04 -07:00
2014-06-14 19:49:48 -05:00
2014-06-06 07:57:37 -06:00
2013-04-09 14:13:21 -04:00
2014-06-14 19:49:48 -05:00
2013-04-09 14:13:23 -04:00
2014-06-09 18:54:06 -07:00
2013-02-27 19:10:18 -08:00
2013-10-25 11:36:26 +01:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:27 -04:00
2013-04-09 14:13:15 -04:00
2014-05-28 18:14:16 +02:00
2014-06-06 07:57:37 -06:00
2013-12-06 08:30:18 -08:00
2013-04-09 14:13:17 -04:00
2014-04-10 15:30:35 -07:00
2014-04-10 15:30:35 -07:00
2014-04-01 18:49:04 -07:00
2013-11-23 22:33:50 -08:00
2014-06-09 18:54:06 -07:00
2014-06-06 07:57:37 -06:00
2014-06-06 07:57:37 -06:00
2012-09-14 17:59:29 +01:00
2014-05-28 18:14:16 +02:00
2014-05-28 12:05:37 +02:00
2014-05-28 12:05:37 +02:00
2013-04-09 14:13:15 -04:00
2013-04-09 14:13:15 -04:00