lkml.org 
[lkml]   [2008]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch 2/4] fastboot: retry mounting the root fs if we can't find init
From
Date
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



\
 
 \ /
  Last update: 2008-07-21 03:37    [W:0.024 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site