HomeFreeBSD

In r290196 the root mount hold mechanism was changed to make it not wait

Description

In r290196 the root mount hold mechanism was changed to make it not wait
for mount hold release if the root device already exists. So, unless your
rootdev is not on USB - ie in the usual case - the root mount won't wait
for USB. However, the old behaviour was sometimes used as "wait until USB
is fully enumerated", and r290196 broke that.

This commit adds vfs.root_mount_always_wait tunable, to force the kernel
to always wait for root mount holds, even if the root is already there.

Reviewed by: kib
MFC after: 2 weeks
Relnotes: yes
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D9387

Details

Provenance
traszAuthored on
Reviewer
kib
Differential Revision
D9387: Add vfs.root_mount_always_wait.
Parents
rS313349: loader: disk io should not use alloca()
Branches
Unknown
Tags
Unknown