Skip to content

Commit

Permalink
init: reduce rootwait polling interval time to 5ms
Browse files Browse the repository at this point in the history
For several devices, the rootwait time is sensitive because it directly
affects booting time.  The polling interval of rootwait is currently
100ms.  To save unnessesary waiting time, reduce the polling interval to
5 ms.

[[email protected]: remove used-once #define]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jungseung Lee <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Jungseung-Lee authored and torvalds committed Dec 13, 2016
1 parent 30f74aa commit 39a0e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/do_mounts.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ void __init prepare_namespace(void)
saved_root_name);
while (driver_probe_done() != 0 ||
(ROOT_DEV = name_to_dev_t(saved_root_name)) == 0)
msleep(100);
msleep(5);
async_synchronize_full();
}

Expand Down

0 comments on commit 39a0e97

Please sign in to comment.