linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* usb race possible?
@ 2005-06-14 13:35 Andreas Jellinghaus
  2005-06-14 14:22 ` Kay Sievers
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Andreas Jellinghaus @ 2005-06-14 13:35 UTC (permalink / raw)
  To: linux-hotplug

Hi,

if a new usb device is added the kernel
generates a hotplug event including the
path to the usb device.

does the kernel guarantee that the device
in the usb device filesystem is available
when the hotplug script is called?

I have one user here where it seems that
sometimes the process started via hotplug
is too fast, i.e. open on the usb device
fails. manualy running lsusb shows the
device. linux kernel 2.6.11 (-gentoo,
not sure what they changed).

so could this be a race condition? any other
idea how I can debug the issue? for now I added
a "sleep 1" to the hotplug handler before the
open and it seems to cure the problem.

Regards, Andreas



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-06-15 22:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-14 13:35 usb race possible? Andreas Jellinghaus
2005-06-14 14:22 ` Kay Sievers
2005-06-15 13:33 ` Andreas Jellinghaus
2005-06-15 14:28 ` Greg KH
2005-06-15 14:32 ` Andreas Jellinghaus
2005-06-15 22:04 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).