linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
To: linux-hotplug@vger.kernel.org
Subject: Re: [GIT] Experimental threaded udev
Date: Wed, 03 Jun 2009 20:46:01 +0000	[thread overview]
Message-ID: <4A26E109.7010703@tuffmail.co.uk> (raw)
In-Reply-To: <4A1EA138.10400@tuffmail.co.uk>

Kay Sievers wrote:
> On Tue, Jun 2, 2009 at 16:05, Kay Sievers <kay.sievers@vrfy.org> wrote:
>
>   
>> Version 5. I guess we should go for the signalfd stuff, it looks prett
>> nice. The socketpair instead of the rtsignal is also nice, it allows
>> us to pass back arbitrary data from finished events to the main
>> daemon.
>>     
>
> Version 7. We need to handle the netlink unicast addresses, they are
> not neccessarily the process pid, so we need to remember the netlink
> address.
>
> We also keep 2 workers around, and don't kill them, to handle incoming
> events without forking.
>
> Thanks,
> Kay
>   

Ok.

I think the patch breaks the settle control message.  It now sends the 
signal back to udevadm immediately, instead of postponing it until after 
handle_inotify(), which was apparently the point.

"
    Now udevadm settle will send a control message to udevd, which will
    respond by sending SIGUSR1 back to the waiting udevadm settle once it
    has completed the main loop iteration in which it received the control
    message.
   
    If there were no pending inotify events, this will simply wake up the
    udev daemon and allow settle to continue.  *If there are pending inotify
    events, they are handled first in the main loop* so when settle is
    continued they will have been turned into uevents and the kernel
    sequence number will have been incremented.
"

Perhaps it would be simplest to reorder the main loop so that 
handle_ctrl() comes after handle_inotify().  If I'm right, it could 
benefit from a comment pointing out that this order is significant and 
should be preserved.


That said, I don't completely understand the settle control message.  I 
don't get why udevadm-settle only sends it once at the start, instead of 
incorporating it as part of the delay loop.

Thanks
Alan

  parent reply	other threads:[~2009-06-03 20:46 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-28 14:35 [GIT] Experimental threaded udev Alan Jenkins
2009-05-28 15:09 ` Kay Sievers
2009-05-28 15:39 ` Alan Jenkins
2009-05-29 17:53 ` Alan Jenkins
2009-05-29 18:11 ` Kay Sievers
2009-06-01  2:41 ` Kay Sievers
2009-06-01  9:29 ` Alan Jenkins
2009-06-01 11:32 ` Kay Sievers
2009-06-01 12:33 ` Kay Sievers
2009-06-01 13:30 ` Kay Sievers
2009-06-01 13:46 ` Alan Jenkins
2009-06-01 13:57 ` Kay Sievers
2009-06-01 16:22 ` Kay Sievers
2009-06-01 16:24 ` Alan Jenkins
2009-06-01 19:39 ` Kay Sievers
2009-06-02  4:58 ` Kay Sievers
2009-06-02  9:13 ` Alan Jenkins
2009-06-02  9:26 ` Alan Jenkins
2009-06-02 11:39 ` Kay Sievers
2009-06-02 14:05 ` Kay Sievers
2009-06-03 19:44 ` Kay Sievers
2009-06-03 20:46 ` Alan Jenkins [this message]
2009-06-03 22:20 ` Kay Sievers
2009-06-03 23:53 ` Kay Sievers
2009-06-06 14:20 ` Kay Sievers
2009-06-06 17:01 ` Bryan Kadzban
2009-06-08 11:45 ` Scott James Remnant
2009-06-08 16:29 ` Bryan Kadzban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A26E109.7010703@tuffmail.co.uk \
    --to=alan-jenkins@tuffmail.co.uk \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).