No automatic root mount holding for new geom providers?

Colin Percival cperciva at tarsnap.com
Mon Nov 6 08:58:33 UTC 2017


On 11/06/17 00:05, Poul-Henning Kamp wrote:
> Colin Percival writes:
>> In practice, it seems that we avoid this by virtue of tasting new geoms being
>> much faster than everything else the kernel does between when the disks are
>> attached and when vfs_mountroot runs, but I wouldn't want to rely on that.
>>
>> Am I missing something?
> 
> As I recall, the actual open will stall on the non-empty event-queue.

Aha!  I'm not sure about opens, but vfs_mountroot_wait calls g_waitidle, which
waits until the event queue is empty.  So any devices discovered before we hit
vfs_mountroot will indeed have been fully digested before we try to mount the
root filesystem.

Thanks!

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid


More information about the freebsd-geom mailing list