Re: [PATCH v3 4/6] scsi_error: fix invalid setting of host byte

2014-06-05 Thread Christoph Hellwig
On Wed, Jun 04, 2014 at 01:34:57PM +0200, Paolo Bonzini wrote: > From: Ulrich Obergfell > > 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 >

[PATCH v3 4/6] scsi_error: fix invalid setting of host byte

2014-06-04 Thread Paolo Bonzini
From: Ulrich Obergfell 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