linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: about split the udev
Date: Tue, 13 Jan 2004 20:36:30 +0000	[thread overview]
Message-ID: <20040113203630.GB10464@kroah.com> (raw)
In-Reply-To: <3ACA40606221794F80A5670F0AF15F8402D4EE96@PDSMSX403.ccr.corp.intel.com>

On Tue, Jan 13, 2004 at 07:05:26PM +0000, Tristan Wibberley wrote:
> Greg KH wrote:
> 
> | I am talking about udev splitting into 2 pieces:
> | 	udev - called the same way udev is called today.
> | 	       creates a tiny message queue message based on the hotplug
> | 	       event and then exits.  This can probably be done in under
> | 	       6Kb of binary code.
> | 	udevd - receives the udev message queue messages.  Orders them
> | 		in the proper order (based on the SEQ_NUM from the
> | 		hotplug event), and then acts on them.  Size should be
> | 		about what we have today for the udev binary 50Kb or so.
> |
> | We need to do this in order to properly handle out of order hotplug
> | events.
> 
> Will that solve the problem? If udevd keeps up with the messages, and
> the udev that supplies the second message pre-empts the one that
> provides the first, will udevd process the second message because it
> doesn't know that there is an earlier one about to come in?
> 
> If udevd waits for contiguous SEQ_NUMs to ensure this doesn't happen,
> then a dead/locked-up udev will freeze everything (udevd won't know
> which of the events it has should wait until after the unknown one). I
> think a different solution is required.

No, udev will have to peek at future messages to see if we got them out
of order, and re-order them.  And a time-out will have to be in place in
case we somehow lose one entirely.

thanks,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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

  parent reply	other threads:[~2004-01-13 20:36 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-12  7:53 about split the udev Ling, Xiaofeng
2004-01-12  9:36 ` Martin Waitz
2004-01-12 13:54 ` Kay Sievers
2004-01-12 16:23 ` Martin Waitz
2004-01-12 16:28 ` Robert Love
2004-01-12 17:51 ` David Zeuthen
2004-01-13  1:12 ` Greg KH
2004-01-13  1:29 ` Greg KH
2004-01-13 19:05 ` Tristan Wibberley
2004-01-13 20:36 ` Greg KH [this message]
2004-01-15 14:36 ` Ling, Xiaofeng
2004-01-15 21:45 ` Greg KH
2004-01-21 13:38 ` Kay Sievers
2004-01-22  0:27 ` Kay Sievers
2004-01-22  1:08 ` Kay Sievers
2004-01-22 23:01 ` Kay Sievers
2004-01-23  0:34 ` Greg KH
2004-01-23  1:00 ` Kay Sievers
2004-01-23  3:37 ` Kay Sievers
2004-01-23  3:46 ` Greg KH
2004-01-23  3:58 ` Kay Sievers
2004-01-23  4:04 ` Greg KH
2004-01-24 16:06 ` Ling, Xiaofeng
2004-01-24 16:57 ` 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=20040113203630.GB10464@kroah.com \
    --to=greg@kroah.com \
    --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).