lkml.org 
[lkml]   [2008]   [Apr]   [25]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 25 Apr 2008 00:04:39 -0700
FromMatthew Dharm <>
SubjectRe: [RFC/PATCH] usb-storage: wait for device scanning before mounting root
On Fri, Apr 25, 2008 at 09:30:52AM +0300, Pekka J Enberg wrote:
> On Thu, 24 Apr 2008, Matthew Dharm wrote:
> > This also has all sorts of races between do_mounts 'waiting' and the actual
> > USB device enumeration.  It's entirely possible that the kernel loads via
> > BIOS, the USB drivers are loaded, that forces devices to disconnect/reset,
> > and they take a while to re-enumerate.  During that delay, the kernel gets
> > to do_mount; now, no devices show in this "waiting for scan" count.
> 
> So how does that happen? ->storage_probe fails and driver core calls it 
> later at some point?

There's no guarantee that storage_probe is going to get called in a timely
manner.

Matt

-- 
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.net 
Maintainer, Linux USB Mass Storage Driver

It was a new hope.
					-- Dust Puppy
User Friendly, 12/25/1998
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2008-04-25 09:07    [from the cache]
©2003-2008