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 _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-geom To unsubscribe, send any mail to "[email protected]"
