Re: [PATCH] usb-storage: scsiglue: Changing the command result
From: Alan Stern
Date: Wed Oct 16 2013 - 10:40:04 EST
On Wed, 16 Oct 2013, Ming Lei wrote:
> > Of course the SCSI midlayer has decided to abort. That's the only way
> > this bit can get set. But usb-storage doesn't know why SCSI decided to
> > abort.
>
> usb-storage may know if it is caused by timeout via .eh_timed_out callback
> if it wants to know.
Ah, good point.
Vishal, since the only way an abort can occur is when the
.eh_timeout_out callback runs, I think it makes sense to set the result
code to DID_TIME_OUT instead of DID_ABORT in all cases.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/