Re: [patch 2/4] fastboot: retry mounting the root fs if we can'tfind init

From: Daniel Walker
Date: Sun Jul 20 2008 - 21:35:24 EST


On Sun, 2008-07-20 at 15:13 -0700, Arjan van de Ven wrote:
> + /*
> + * We haven't found init yet... potentially because the device
> + * is still being probed. We need to
> + * - flush keventd and friends
> + * - wait for the known devices to complete their probing
> + * - try to mount the root fs again
> + */
> + flush_scheduled_work();
> + while (driver_probe_done() != 0)
> + msleep(100);

I realize the while() loop above is just code shifted from
init/do_mounts_md.c , but I'm wondering if that could be a complete
instead of a while then sleep 100ms .. That would reduce the overshoot .

Daniel

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