public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pete Zaitcev <zaitcev@redhat.com>
To: josn@josn.myip.org, Greg KH <greg@kroah.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: rootfs on USB storage device
Date: Thu, 15 Nov 2001 22:06:35 -0500	[thread overview]
Message-ID: <200111160306.fAG36ZW05331@devserv.devel.redhat.com> (raw)
In-Reply-To: <mailman.1005878220.14858.linux-kernel2news@redhat.com>
In-Reply-To: <mailman.1005878220.14858.linux-kernel2news@redhat.com>

> > > Does anybody have a clue as to what the USB bus has to do with
> > > /dev/console?
> >
> > It's a timing issue, and has nothing to do with /dev/console.  If you
> > sit and spin before you try to mount the root fs, the USB subsystem will
> > have enough time to find the drive.  There's a few patches that do this
> > in the lkml archives.
> >
> > greg k-h
> 
> It does not seem so. I included several seconds of mdelay() (and lots of
> printk()'s) while I was debugging, and that didnt change a thing. I added
> a.o. 4 seconds of mdelay() right before the open(), and 2 seconds right
> after the open() and the two dup()'s. The storage device was detected at
> the beginning of that last delay. [...]

I think khubd needs to run to complete whole process and mdelay()
locks it out. You need something that calls schedule() for USB
detection to work. Try to use schedule_timeout() instead of mdelay().

-- Pete

       reply	other threads:[~2001-11-16  3:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1005878220.14858.linux-kernel2news@redhat.com>
2001-11-16  3:06 ` Pete Zaitcev [this message]
2001-11-16 13:21   ` rootfs on USB storage device Eric Lammerts
2001-11-16 17:30     ` Pete Zaitcev
2001-11-15  3:22 Jos Nouwen
2001-11-15  5:07 ` Greg KH
2001-11-16  2:32   ` Jos Nouwen

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=200111160306.fAG36ZW05331@devserv.devel.redhat.com \
    --to=zaitcev@redhat.com \
    --cc=greg@kroah.com \
    --cc=josn@josn.myip.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox