On Thursday 01 November 2001  9:45 pm, [EMAIL PROTECTED] 
wrote:
> On Thu, 1 Nov 2001, Duncan Sands wrote:
> > I see from the code that disconnect and probe calls are serialized:
> > one won't be called during the other.  However, what about
> > usbdevfs ioctl calls?  I am worried that ioctl (the one you can specify
> > in the usb_driver struct) can be called during or even after a
> > disconnect.  Is that right?  If so I will have to put some extra
> > locks/logic to avoid SMP races in the driver I'm working on, which
> > I'd rather not do if I don't have to.
>
> Why would that be different from read or write ?

What do you mean?  If you mean: "of course the ioctl callback
can be called during disconnect, just like for other reads and
writes", well I agree.  I didn't write the driver, I'm trying to fix
it so it works with SMP; this looks like an obvious race in the
driver (ioctl during disconnect), but I would like to be sure.
Maybe the driver author knows something I don't...

All the best,

Duncan.

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

Reply via email to