linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nix <nix@esperi.org.uk>
To: linux-hotplug@vger.kernel.org
Subject: Re: udevadm settle persistently failing
Date: Sun, 15 May 2011 23:47:23 +0000	[thread overview]
Message-ID: <87d3jjmsqc.fsf@spindle.srvr.nix> (raw)
In-Reply-To: <8739kfzv1j.fsf@spindle.srvr.nix>

On 16 May 2011, Kay Sievers stated:
> We are sure it's not related to /run? We keep the state there and need
> a tmpfs there before udevd is started, and it must not be touched, or
> cleaned by some other stuff, that thinks /var/run (bind mount or
> symlink) needs to be cleaned during boot.

Just to confirm, I'm not cleaning out /run, or touching it at all except
to create /run/lock later in boot.

> Devtmpfs solves a lot of settle races, yeah. We should run fine on
> tmpfs, but it's the only config that is really tested these days, so
> it might be a problem nobody else is really seeing.

I could turn on devtmpfs, I suppose, except that I have an early
userspace and I'm not sure how I'd need to change it: devtmpfs gets
mounted on the rootfs, doesn't it? This problem isn't happening on the
rootfs, it's on the root filesystem that is overmounted over that. (I'm
using busybox mdev to populate the rootfs /dev because it works for such
a simple case, and never goes wrong because it's too simple to go wrong.
However it's also too simple to be much use for a running system.)

> The current settle wakes up in exactly the moment the last event is
> gone, instead of it sleep()ing in a loop. It might be a bit earlier,
> not really before stuff has settled though.
>
> Does this work for you?
>   time (udevadm trigger; udevadm settle)
>
> It should not return immediately. You can watch the events with:
> 
>   udevadm monitor
> at the same time and check if it really only returns after the last event.

Hm, well, that seems to be working, at least once the system is all the
way up. But *something* plainly isn't.

On my next boot I'll time the trigger-and-settle pair and see how long
it takes...

-- 
NULL && (void)

  parent reply	other threads:[~2011-05-15 23:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-15 18:19 udevadm settle persistently failing Nix
2011-05-15 18:32 ` Tom Gundersen
2011-05-15 23:25 ` Kay Sievers
2011-05-15 23:33 ` Kay Sievers
2011-05-15 23:38 ` Nix
2011-05-15 23:47 ` Nix [this message]
2011-05-15 23:51 ` Kay Sievers
2011-05-15 23:57 ` Kay Sievers
2011-05-16  5:05 ` DJ Lucas
2011-05-16  6:23 ` DJ Lucas
2011-05-16 10:01 ` Nix
2011-05-16 10:22 ` Marco d'Itri
2011-05-16 10:36 ` Nix
2011-05-16 10:51 ` Kay Sievers
2011-05-16 11:28 ` Kay Sievers
2011-05-16 12:47 ` Nix

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=87d3jjmsqc.fsf@spindle.srvr.nix \
    --to=nix@esperi.org.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).