> The rule of never unlinking an urb that can be freed from the
> completion handler is in all likelihood known to less than
> five people on earth. And it is very, very counterintuitive.
There are hundreds of drivers, and three hcds. Surely it would be better
to let the HCD do the relevant hoop jumping in these cases. If the URBs
are refcounted all these problems go away. I can free an urb whenever I like,
unlink it, keep hold of it, and all I know is that
o Nothing will break whenever I use it
o I might get an error return saying an operation wasnt allowed
as it was busy - but if I ignore it Im ok.
o My callbacks if called will hold a valid pointer
o If I make a copy I have to take a reference
The amount of bugs and crap refcounting has removed elsewhere in the kernel
and more importantly the amount of "if I do X very occasionally [list of
weirdness]" things that just went away testify to its value.
Alan
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel