[PATCH 6/8] process non-dependant hotplug events in parallel

Rob Taylor rob.taylor at codethink.co.uk
Mon Nov 19 08:20:34 PST 2007


Calculate event dependancy of hotplug events based of their sysfs_path.
In hotplug_event_process_queue if an event is dependant on an event in
progress, it will be held back in in the queue.

The event dependancy calculation is cribbed from udev. It requires the
event sequence number in order to order the dependancies. We don't get
event sequence numbers during coldplug, so we emulate them using a
simple counter.

---
 hald/linux/coldplug.c |    4 +-
 hald/linux/hotplug.c  |  124
+++++++++++++++++++++++++++++++++++++++----------
 2 files changed, 102 insertions(+), 26 deletions(-)

-- 
Rob Taylor, Codethink Ltd. -  http://codethink.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dc5b012e6f6d5f48be43d91fbc347adc339495eb.diff
Type: text/x-patch
Size: 6011 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20071119/7d749323/attachment.bin 


More information about the hal mailing list