[PATCH] Bug #975

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Mon Aug 21 21:10:05 UTC 2006


Hello!

Bug #975 is about udev spawning multiple modprobes at cold-plugging-time (that
is boot time). The problem occurs when two devices require the same module
(eg. two or more same PCI cards, two or more same USB keys, etc...).

Because the code in modprobe does not handle this, one instance of modprobe
succeeds, the other fails, and udev bails out, not finishing his job, when the
module is in fact correctly loaded.

Attached is the patch I suggest for this bug. I tested it and it works, but
would like some review first.

On a side note, I start to believe that modprobe is badly in need of a
rewrite. Patches after patches makes the code ugly to me. Opinions?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< °_° >==-- °---.----------------:  X  AGAINST      |  /e\  There is no  |
| web: ymorin.free.fr | SETI at home 3808 | / \ HTML MAIL    |  """  conspiracy.  |
°---------------------°----------------°------------------°--------------------°
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 975-parallel_execution
Type: text/x-diff
Size: 896 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060821/ea2b1c38/attachment-0002.bin 


More information about the busybox mailing list