Page MenuHomeFreeBSD

vfs_mountroot: Wait for GEOM idle post root holds
ClosedPublic

Authored by cperciva on Dec 20 2021, 7:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 21, 7:09 AM
Unknown Object (File)
Tue, Apr 21, 5:14 AM
Unknown Object (File)
Mon, Apr 20, 7:27 PM
Unknown Object (File)
Sun, Apr 19, 12:14 PM
Unknown Object (File)
Tue, Apr 14, 1:10 AM
Unknown Object (File)
Mon, Apr 13, 11:29 PM
Unknown Object (File)
Fri, Apr 10, 7:15 AM
Unknown Object (File)
Thu, Apr 9, 7:29 PM
Subscribers

Details

Summary

In the case of a root hold related to the initialization of a disk
device, a flurry of GEOM tasting is likely to take place as soon as
the device is initialized and the root hold is released. If we
don't wait for GEOM idle it's easy for vfs_mountroot to "win" the
race and proceed before the root filesystem GEOM is ready.

Sponsored by: https://www.patreon.com/cperciva

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable