Re: patch to shift memory allocations to usb_alloc_urb()

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

> This is very good and worth preserving.
> 
> IMHO the storage driver should be optimized for EHCI. The others must
> work, but the most important is EHCI. So this would point to dynamic
> allocation of URBs with one preallocated URB to fall back to for the ENOMEM
> case.
> 
> This brings me to an idea.
> Is it possible to accept the next scsi request while the current request is
> being executed? That way, when the first request finishes, the URBs
> could be retained if they are needed right away and otherwise freed.

It's _possible_, but why go through all that work?  Just keep the URBs 
allocated permanently.  They don't take up much space compared with 
UHCI's TDs.

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.