Re: [RFC/PATCH] usb-storage: wait for device scanning before mounting root

From: Matthew Wilcox
Date: Fri Jun 20 2008 - 11:31:51 EST


On Fri, Jun 20, 2008 at 05:15:43PM +0200, Vegard Nossum wrote:
> On Thu, Jun 19, 2008 at 11:39 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> > As I recall, it died because the whole notion was very poorly defined
> > to begin with. The idea was to stop waiting when all the SCSI buses
> > had been scanned -- but there's no way to know when that occurs because
> > new buses can be added at any time.
>
> Can you please explain why this is?

The USB spec doesn't mandate a minimum time before devices come
available. There's no way for the device to say "I'm here, I will be
providing USB Storage, but I'm not ready yet". So we can't know when
we've enumerated all the USB devices on the system.


--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/