On Sun, Jan 13, 2002 at 10:24:55AM -0800, Greg KH wrote:
> On Sun, Jan 13, 2002 at 12:58:45PM +0100, Oliver Neukum wrote:

> > 2) skel_write checks for -EINPROGRESS. This is a race.
> 
> Yes, but it's a race that _so_ many different drivers have that I don't
> consider it a driver problem.  It should be fixed in the host controller
> and core, and not have every driver have to implement something like a
> "writing" flag for every urb.

I don't think that you can devise a locking scheme that would
be foolproof and allowed callers to poke into fields of a submitted
URB (such as ->status). But go on, surprise me.

That many drivers are broken is not as bad as it sounds.
Most of them do have callbacks already and do sleep, therefore
they already have some data structures which can accomodate
a "done" flag (same that contain waitqueue). It's not like we would
need to do a major surgery.

-- Pete

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to