Parallel hotplugging event issues

Danny Kukawka danny.kukawka at
Mon Aug 11 07:19:17 PDT 2008

On Montag, 17. März 2008, Danny Kukawka wrote:
> On Sonntag, 16. März 2008, Sjoerd Simons wrote:
> > Now when a device is removed, all it's child devices get removed too.. So
> > the event for A removes device C, causing the handlers of C to get
> > confused (as C is gone).. What this shows is that purely using the sysfs
> > path prefixes for dependency information isn't enough, the relationship
> > of devices as hal has detected them needs to be taken into account too.
> The problem is IMO now the code to remove e.g. spawned devices which are
> childs of real devices. See attached patch which may helps if a device get
> removed by remove childs only if they have no sysfs path. Other devices
> with a set sysfs path should get removed correctly via normal handling.
> I didn't test the patch, I do this tomorrow.

I've commited the patch for now, but we should still try to solve the source 
of the problem ASAP.


More information about the hal mailing list