linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Weird race-like problem in udev
@ 2010-06-21 16:47 Ozan Çağlayan
  2010-06-22 11:31 ` Kay Sievers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ozan Çağlayan @ 2010-06-21 16:47 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I have a bug report from a user which complains about udev not correctly hotplugging the devices. The symptoms are quite racy and random:

* When he starts the OS and plugs a USB device, udev doesn't load the necessary kernel driver,
* He then unplugs/plugs it several times:
  * Sometimes it starts to work correctly, the module gets inserted
  * Sometimes it still doesn't modprobe the module
* He discovered that spawning a 2nd udevd by hand resolves the issue

I suggested him to set the udevd log level to "debug" and we've found out that setting the log level through udevadm control heals the issue as well. So I proposed to edit the udev.conf and set the log level there and reboot. Upon reboot, after a cycle of 2-3 failed plug/unplug attempt, the problem seems fixed/disappeared too.

I grabbed full syslog with udevd running log-priorityfibug, took a look and found out that the events are correctly dispatched to the worker threads but the modprobe is called on a very late plug/unplug attempt.

Here's the full log:
  http://bugs.pardus.org.tr/attachment.cgi?idT50

* The device is first plugged @ 16:50:54 (VENDOR=_USB_MF_)
* worker[541] being able to spawn modprobe is @ 16:53:21
* Between those timestamps you can see several "seq xxxx queued 'add' 'usb' which doesn't lead to a modprobe.

udev version is 146. I know that it's a little bit outdated but I'd be glad if you can help me debugging the issue. Any commit id from the git tree that is known to fix the issue is also very appreciated.

Thanks,
Ozan Caglayan
--

http://www.pardus.org.tr/eng
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2010-06-22 13:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-21 16:47 Weird race-like problem in udev Ozan Çağlayan
2010-06-22 11:31 ` Kay Sievers
2010-06-22 12:06 ` Ozan Çağlayan
2010-06-22 13:40 ` Kay Sievers

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).