]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs_mountroot: Skip 'Root mount waiting' < 1 s
authorColin Percival <cperciva@FreeBSD.org>
Mon, 20 Dec 2021 15:17:25 +0000 (07:17 -0800)
committerColin Percival <cperciva@FreeBSD.org>
Wed, 29 Dec 2021 20:41:08 +0000 (12:41 -0800)
commite6db5eb9ec7ba9edfc564fd5ade5fb40df9acebb
treefc2d53aa580124c3a109438ba9f065da1dce15be
parentca457394fccfc7d712cd9cc6a66e574767a0a32b
vfs_mountroot: Skip 'Root mount waiting' < 1 s

While the message is technically correct, it's not particularly
helpful in the case where we're only waiting a few ms; this case
occurs frequently on EC2 arm64 instances with CAM initialization
racing to release its root hold before vfs_mountroot reaches this
point.  Only print the message if we end up waiting for more than
one second.

Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D33591
sys/kern/vfs_mountroot.c