All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kyle Moffett <mrmacman_g4@mac.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, Jens Axboe <axboe@suse.de>,
	Greg KH <greg@kroah.com>, Jon Smirl <jonsmirl@gmail.com>
Subject: Re: current linus bk, error mounting root
Date: Mon, 21 Mar 2005 20:14:29 -0500	[thread overview]
Message-ID: <5dab45539e663d50b9e3e5d05fc11336@mac.com> (raw)
In-Reply-To: <20050321161925.76c37a7f.akpm@osdl.org>

On Mar 21, 2005, at 19:19, Andrew Morton wrote:
> Jon Smirl <jonsmirl@gmail.com> wrote:
>> Jens is right that this is a user space issue, but how many people are
>> going to find this out the hard way when their root drives stop
>> mounting. Since no one is complaining I have to assume that most
>> kernel developers have their root device drivers built into the
>> kernel. I was loading mine as a module since for a long time Redhat
>> was not shipping kernels with SATA built in.
>
> I don't agree that this is a userspace issue.  It's just not sane for a
> driver to be in an unusable state for an arbitrary length of time after
> modprobe returns.

What about if I'm booting from a USB drive?  In that case, because of 
the
asynchrony of USB probing, it may take 1 or 2 seconds for my attached 
hub
to power on, wake up, boot its embedded microprocessor, etc before it 
will
respond to signals.  In such a case, as far as the root hub can tell,
there are _no_ external devices for a couple seconds, and that's 
ignoring
that my external USB bootdrive may _also_ need time to "boot" before it
will be accessible, and that's only once its parent hub has become
available.

I think that the kernel needs some kind of wait-for-device API that is
accessible from kernel-space for the simple boot sequence, perhaps just
waiting for a specific kobject to be detected and complete 
initialization.

For an initrd/initramfs in userspace, dnotify on sysfs (For the static
/dev case), or dnotify on /dev (For the udev case) should allow it to
detect when the device is available.

Cheers,
Kyle Moffett

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM/CS/IT/U d- s++: a18 C++++>$ UB/L/X/*++++(+)>$ P+++(++++)>$
L++++(+++) E W++(+) N+++(++) o? K? w--- O? M++ V? PS+() PE+(-) Y+
PGP+++ t+(+++) 5 X R? tv-(--) b++++(++) DI+ D+ G e->++++$ h!*()>++$ r  
!y?(-)
------END GEEK CODE BLOCK------



  parent reply	other threads:[~2005-03-22  1:24 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-09 17:03 current linus bk, error mounting root Jon Smirl
2005-03-09 17:16 ` Jeff Garzik
2005-03-09 18:23   ` Jon Smirl
2005-03-09 20:28     ` Jeff Garzik
2005-03-09 20:31     ` Jeff Garzik
2005-03-09 20:51       ` Jon Smirl
2005-03-09 21:09         ` Jens Axboe
2005-03-10  1:16           ` Jon Smirl
2005-03-10  7:50             ` Jens Axboe
2005-03-10 14:58               ` Jon Smirl
2005-03-10 15:31                 ` Jens Axboe
2005-03-10 15:45                   ` Jon Smirl
2005-03-10 15:48                     ` Jens Axboe
2005-03-10 15:59                       ` Jon Smirl
2005-03-10 16:01                         ` Jens Axboe
2005-03-10 16:18                           ` Jon Smirl
2005-03-10 16:29                             ` Jens Axboe
2005-03-10 18:40                               ` Jon Smirl
2005-03-10 18:52                               ` Jon Smirl
2005-03-11  3:11                                 ` Matt Mackall
2005-03-11  3:18                                   ` Jon Smirl
2005-03-15 15:39                               ` Jon Smirl
2005-03-15 15:47                                 ` Jens Axboe
2005-03-09 20:34     ` Steven Cole
     [not found] ` <20050321154131.30616ed0.akpm@osdl.org>
     [not found]   ` <9e473391050321155735fc506d@mail.gmail.com>
2005-03-22  0:19     ` Andrew Morton
2005-03-22  0:38       ` Greg KH
2005-03-22  0:43         ` Andrew Morton
2005-03-22  0:49           ` Greg KH
2005-03-22  0:57             ` Jon Smirl
2005-03-22  4:02               ` Greg KH
2005-03-22  1:13             ` Jon Smirl
2005-03-22  0:53           ` Jon Smirl
2005-03-22  4:03             ` Greg KH
2005-03-22  0:47         ` Jon Smirl
2005-03-22  1:14       ` Kyle Moffett [this message]
2005-03-22  4:02         ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2005-03-12 13:15 Alexander E. Patrakov
2005-03-12 19:56 ` Jon Smirl

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=5dab45539e663d50b9e3e5d05fc11336@mac.com \
    --to=mrmacman_g4@mac.com \
    --cc=akpm@osdl.org \
    --cc=axboe@suse.de \
    --cc=greg@kroah.com \
    --cc=jonsmirl@gmail.com \
    --cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.