mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Haavard Skinnemoen <hskinnemoen@atmel.com>
To: Pierre Ossman <drzeus@drzeus.cx>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] MMC: Flush mmc workqueue late in the boot sequence
Date: Thu, 10 May 2007 14:37:37 +0200	[thread overview]
Message-ID: <20070510143737.54969394@dhcp-252-105.norway.atmel.com> (raw)
In-Reply-To: <46430A49.9090803@drzeus.cx>

On Thu, 10 May 2007 14:04:25 +0200
Pierre Ossman <drzeus@drzeus.cx> wrote:

> Haavard Skinnemoen wrote:
> > At some point before 2.6.20, the mmc subsystem moved the card
> > detection code to its own workqueue. One consequence of this change
> > is that when using an mmc card as a root device, the card may get
> > detected after the init task attempts to mount the root filesystem,
> > causing a kernel panic because the root device could not be opened.
> > 
> > This patch adds a call to mmc_flush_scheduled_work() late in the boot
> > sequence so that we can be sure the mmc card detection scans are
> > complete before attempting to use an mmc device as a root device.
> > 
> > Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
> 
> NAK. This is still hackish and not a reliable, controlled way of handling the
> issue of rootfs on removable media.

What exactly makes this unreliable? This is done almost exactly the
same way for SCSI. See drivers/scsi/scsi_wait_scan.c.

> For reference, how is this handled in USB (which is conceptually identical)? The
> normal case for removable media is usually an initrd that can wait for hotplug
> events.

I don't know about USB, but root=/dev/mmcblk0p1 used to work before
2.6.20 and it doesn't work anymore. Doesn't that make this a regression?

Haavard

  reply	other threads:[~2007-05-10 12:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-10 10:35 Haavard Skinnemoen
2007-05-10 12:04 ` Pierre Ossman
2007-05-10 12:37   ` Haavard Skinnemoen [this message]
2007-05-10 13:45     ` Pierre Ossman
2007-05-10 14:33       ` Haavard Skinnemoen
2007-05-10 15:58         ` Pierre Ossman
2007-05-10 16:27           ` Haavard Skinnemoen
2007-05-10 17:51             ` Matt Reimer
2007-05-11  7:44               ` Haavard Skinnemoen
2007-05-10 19:41             ` Pierre Ossman
2007-05-11  8:39               ` Haavard Skinnemoen
2007-05-13 13:34                 ` Pierre Ossman
2007-05-13 13:47                   ` Haavard Skinnemoen
2007-05-13 14:24                     ` Pierre Ossman
2007-05-13 14:37                       ` Haavard Skinnemoen

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=20070510143737.54969394@dhcp-252-105.norway.atmel.com \
    --to=hskinnemoen@atmel.com \
    --cc=drzeus@drzeus.cx \
    --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

all inboxes | Powered by JetHome®