On 09/03/21 15:14, Philippe Mathieu-Daudé wrote:
SENSE_CODE(LUN_COMM_FAILURE) has an ABORTED COMMAND sense key,
so it results in a retry in Linux. To ensure that EREMOTEIO
is forwarded to the guest, use a HARDWARE ERROR sense key
instead. Note that the code before commit d7a84021d was incorrect
because it used HARDWARE_ERROR as a SCSI status, not as a sense
key.
It is not clear whether if it deserves a 'Fixes: d7a84021db8 ("scsi:
introduce scsi_sense_from_errno()")' or not...
Yes, why not. That was in turn a bugfix but not the best.
Paolo
Reported-by: Marc-André Lureau<marcandre.lur...@redhat.com>
Signed-off-by: Paolo Bonzini<pbonz...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé<phi...@redhat.com>