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

From: Alan Stern
Date: Thu Jun 19 2008 - 17:39:51 EST


On Thu, 19 Jun 2008, Matthew Wilcox wrote:

> This discussion seemed to die off ... did anything ever come of it?

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.

Maybe a better approach would be to poll at reasonable intervals
(HZ/10, for example) for the existence of the root device. If it
hasn't appeared after some reasonable time (30 seconds?) then give up.

Alan Stern

--
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/