linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Udevd sequence number overlap issue!
Date: Wed, 07 Apr 2004 10:04:34 +0000	[thread overview]
Message-ID: <20040407100434.GA26999@vrfy.org> (raw)
In-Reply-To: <3ACA40606221794F80A5670F0AF15F84037B8F7E@PDSMSX403.ccr.corp.intel.com>

On Wed, Apr 07, 2004 at 09:40:55AM +0800, Yin, Hu wrote:
> Hi, All,
> 
> I have a question, that is, why udevd didn't handle sequence number
> overlap issue---that means it's possible for udevsend to send two
> messages with the same sequence number to udevd, especially for test
> environment. I know udevd can execute successfully at this case.
> But should we explicitly handle this issue?
> 
> Should we take this issue into consideration? Look forward to your replying.

If you change the sequences, like it happens while you run a test script
with hardcoded numbers, the first event will be delayed by 10 seconds.
You can prevent this by killing udevd before running the test.  It will
expect sequence number 0 as the first event.

You can also bypass the timeout by omitting SEQNUM for udevsend, it will
bypass the timeout handling and move straight to the exec queue.

If you want to test udev - bypass the timeout. If you want to test
udevsend/udevd just kill udevd or wait one timeout for reinitialization
of the exepected_seqnum.
What do you think is missing and why should we have a special test case?
In both cases you get exactly the expected behavior.

thanks,
Kay


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
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

  reply	other threads:[~2004-04-07 10:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-07  1:40 Udevd sequence number overlap issue! Yin, Hu
2004-04-07 10:04 ` Kay Sievers [this message]
2004-04-08  1:32 ` Yin, Hu
2004-04-08 13:49 ` 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=20040407100434.GA26999@vrfy.org \
    --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).