On Sun, Oct 13, 2002, David Brownell <[EMAIL PROTECTED]> wrote:
> Johannes Erdfelt wrote:
> > On Sun, Oct 13, 2002, David Brownell <[EMAIL PROTECTED]> wrote:
> >>%s/queued/submitted/
> >>
> >>That logic works in both interesting cases:
> >>
> >>  - "one urb no queueing", as it said at the top; or
> >>  - "N urbs queued", as it said (more generally) later
> >>
> >>Sorry to have confused you.
> > 
> > Same thing.
> 
> I suspect you've stayed confused then.
> 
> > Take the hub driver for instance. It doesn't queue URB's and it only has
> > 1 submitted at anytime. It needs to resubmit it after it completes.
> > 
> > With the way it is right now, with enforcing bandwidth reservation,
> > there's the possibility that resubmit will fail for lack of bandwidth.
> 
> In the pseudocode above, where is that possibility?  I don't see it.

Umm, I just described it.

How about this:

hub driver      other driver
submit_urb                              bandwidth allocated
callback                                bandwidth deallocated
                submit_urb              bandwidth allocated
submit_urb                              failed, insufficient bandwidth

Race condition.

JE



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to