From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] use uevents in udevd
Date: Fri, 14 Jan 2005 12:11:55 +0000 [thread overview]
Message-ID: <1105704715.17412.24.camel@localhost.localdomain> (raw)
In-Reply-To: <41E79D7A.2060607@suse.de>
On Fri, 2005-01-14 at 12:22 +0100, Hannes Reinecke wrote:
> Kay Sievers wrote:
> > On Fri, 2005-01-14 at 11:22 +0100, Hannes Reinecke wrote:
> > Shouldn't we ignore events with a SEQNUM from udevsend, if we get the
> > first one from the uevent?
> >
> Indeed we should. I fixed the patch accordingly.
> (Hopefully correct; the list is scanned backwards, right?)
We can't be sure that the message coming in from netlink is still in the
queue. I think we should just set a flag with the first valid netlink
message we receive and skip all udevsend messages with a SEQNUM set from
that on.
> > ./drivers/input/input.c
> > ./drivers/pnp/pnpbios/core.c
> > ./drivers/s390/crypto/z90main.c
> >
> > are still "broken" from that view. They bypass the driver core and don't
> > send any uevent.
> >
> Oh s**t. Still?
>
> Time to lean on Vojtech to fix the input layer.
> Martin promised that z90main will be fixed, so no worries about that
> one. Will have to check pnpbios.
> >>And I've added a command-line option '-d' to start udevd as a daemon.
> >
> >
> > It is already running, right? We should read /sys/kernel/hotplug_seqnum
> > and initialize the next expected event number too, if the self-daemonize
> > is needed.
> >
> Well, no. At least not necessarily.
> And doesn't matter anyway as it will exit if another daemon is already
> running.
> -> There can be only one <-
I mean: Why do you want to start it manually? The fist event will do
this normally. But you are right, if one want's to start it, it's better
than ./udevd&.
> How does this expected event number thingie work?
The daemon has a state which event is the next expected. If we get
something different from the expected number we will wait until a
timeout.
If you kill it and restart it or just start it by hand, we have a good
chance to set the correct next_expected number from the kernel.
> If we're presetting the expected number, what will happen to events
> which might be fed from udevsend after startup of udevd?
It's slippery yes, but initializing it may be slightly better than
not to read it. :) It's not really important anymore as the next version
of udev will have a special startup event timout of 2sec. But the
current one has a 10sec timeout which e.g. breaks the firmware loader
which also has a 10sec timeout. :)
> Especially interesting if the udevinitd approach is used ...
In this case we need to do more special handling when we receive the queue
from initramfs, so we can handle that, right?
Thanks,
Kay
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2005-01-14 12:11 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-14 10:22 [PATCH] use uevents in udevd Hannes Reinecke
2005-01-14 10:40 ` Marco d'Itri
2005-01-14 10:55 ` Hannes Reinecke
2005-01-14 10:55 ` Kay Sievers
2005-01-14 11:00 ` Marco d'Itri
2005-01-14 11:22 ` Hannes Reinecke
2005-01-14 11:26 ` Hannes Reinecke
2005-01-14 11:37 ` Marco d'Itri
2005-01-14 12:11 ` Kay Sievers [this message]
2005-01-14 12:43 ` Kay Sievers
2005-01-14 13:01 ` Arnd Bergmann
2005-01-14 13:01 ` Hannes Reinecke
2005-01-14 13:08 ` Kay Sievers
2005-01-14 13:11 ` Arnd Bergmann
2005-01-14 13:12 ` Kay Sievers
2005-01-14 13:23 ` Hannes Reinecke
2005-01-14 13:35 ` Kay Sievers
2005-01-14 16:08 ` Hannes Reinecke
2005-01-16 16:27 ` Kay Sievers
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=1105704715.17412.24.camel@localhost.localdomain \
--to=kay.sievers@vrfy.org \
--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).