Re: handling ENOMEM in usb sg handling

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Mon, 18 Jun 2007, Oliver Neukum wrote:

> Hi,
> 
> I am looking at usb_sg_init().

> In essence this leaves handling a persistent failure to the generic
> scsi layer, which will timeout and abort the request. Is there any objection
> to report the URB where it failed to the immediate user and let him
> retry the remainder or handle the error any other way?
> I dimly remember discussing this routine in the past.

You could make usb_sg_wait just wait until the part already submitted 
was finished, then go back and retry the remainder.  I think that would 
be simpler.

If for any reason you can't transmit the entire buffer, then the 
entire transfer needs to be aborted by the SCSI error handler anyway.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.