[PATCH] Make prepare_namespace() wait for devices

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pierre Ossman
Date: Thursday, May 24, 2007 - 5:21 am

init: wait for asynchronously scanned block devices

Some buses (e.g. USB and MMC) do their scanning of devices in the
background, causing a race between them and prepare_namespace().
In order to be able to use these buses without an initrd, we now
wait for the device specified in root= to actually show up.

If the device never shows up than we will hang in an infinite loop.
In order to not mess with setups that reboot on panic, the feature
must be turned on via the command line option "rootwait".

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Make prepare_namespace() wait for devices, Pierre Ossman, (Thu May 24, 5:21 am)
Re: [PATCH] Make prepare_namespace() wait for devices, Olaf Hering, (Thu May 24, 11:35 am)
Re: [PATCH] Make prepare_namespace() wait for devices, Pierre Ossman, (Thu May 24, 1:46 pm)
Re: [PATCH] Make prepare_namespace() wait for devices, Andrew Morton, (Thu May 24, 5:06 pm)
Re: [PATCH] Make prepare_namespace() wait for devices, Pierre Ossman, (Thu May 24, 9:03 pm)
Re: [PATCH] Make prepare_namespace() wait for devices, Andrew Morton, (Thu May 24, 9:17 pm)
Re: [PATCH] Make prepare_namespace() wait for devices, Pierre Ossman, (Thu May 24, 9:31 pm)
Re: [PATCH] Make prepare_namespace() wait for devices, Pierre Ossman, (Thu May 31, 4:20 am)
Re: [PATCH] Make prepare_namespace() wait for devices, Andrew Morton, (Thu May 31, 8:51 am)
Re: [PATCH] Make prepare_namespace() wait for devices, Pierre Ossman, (Thu May 31, 10:24 pm)
Re: [PATCH] Make prepare_namespace() wait for devices, Andrew Morton, (Thu May 31, 11:40 pm)
Re: [PATCH] Make prepare_namespace() wait for devices, Pierre Ossman, (Thu May 31, 11:51 pm)