]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs_mountroot: Wait for GEOM idle post root holds
authorColin Percival <cperciva@FreeBSD.org>
Mon, 20 Dec 2021 17:51:34 +0000 (09:51 -0800)
committerColin Percival <cperciva@FreeBSD.org>
Wed, 12 Jan 2022 19:29:48 +0000 (11:29 -0800)
commit72f61780a47dd6b299b30787ad7ac8cc68e83a65
tree1a6e51edbb71e0a740e14b70c3e6ad6d24296ea5
parentd4724934f2e41c850c0e714ebb89f888252b0ddd
vfs_mountroot: Wait for GEOM idle post root holds

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.

Reviewed by: imp
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D33592

(cherry picked from commit 19a172158cc12b3bdd848fead732f2151c36e526)
sys/kern/vfs_mountroot.c