On Thu, 25 May 2006, Norbert Preining wrote:

> Hi Alan!
> 
> On Don, 25 Mai 2006, Alan Stern wrote:
> > If you want to try an interesting test, go back to the
> > usb_stor_invoke_transport() routine in transport.c, just above the
> > Handle_Errors line.  Where it says:
> > 
> >     /* Did we transfer less than the minimum amount required? */
> >     if (srb->result == SAM_STAT_GOOD &&
> >                     srb->request_bufflen - srb->resid < srb->underflow)
> >             srb->result = (DID_ERROR << 16) | (SUGGEST_RETRY << 24);
> > 
> > If the conditional succeeds, have it call msleep(1000) as well as setting 
> > srb->result.  This delay may allow the drive to flush its buffers and get 
> > ready to accept more data.
> 
> Should I run the copy test with or without usbmon after this change?

You might as well run usbmon.  That way we'll be able to see exactly what 
difference the change makes.

Alan Stern



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to