]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r313351:
authortrasz <trasz@FreeBSD.org>
Sun, 19 Mar 2017 10:35:56 +0000 (10:35 +0000)
committertrasz <trasz@FreeBSD.org>
Sun, 19 Mar 2017 10:35:56 +0000 (10:35 +0000)
commite5a9a3b50b98dd87e3cb41ade13824726f70eed1
tree71a64ddf64b1dd8be08248352219ae63df90c88d
parent070fcdbbc936d0308d1c46e5c27e13e4b57e81b8
MFC r313351:

Make root_mount_hold() work after boot. This is important for two
reasons. First is rerooting into USB-mounted device that happens
to be not yet enumerated. The second is when mounting with (non-root)
filesystem on USB device on a hub that's enumerated later than the root
mount: the rc scripts explicitly mount for the root mount holds to be
released, but each USB bus takes the hold asynchronously, and if that
happens after root mount, it would just get ignored.
sys/kern/vfs_mountroot.c