aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_init.h
diff options
context:
space:
mode:
authorUlrich Obergfell <[email protected]>2014-06-04 13:34:57 +0200
committerChristoph Hellwig <[email protected]>2014-06-24 17:00:12 +0200
commit8922a908908ff947f1f211e07e2e97f1169ad3cb (patch)
treea1e892598591ccbea088344ae55e359c0ead64c9 /drivers/scsi/mpt2sas/mpi/mpi2_init.h
parent8b8f5d9715845f9ae2b89ce406e71877965b29ca (diff)
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: [email protected] Signed-off-by: Ulrich Obergfell <[email protected]> [Fix all instances according to review comments. - Paolo] Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Ewan D. Milne <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_init.h')
0 files changed, 0 insertions, 0 deletions