SVNews r327430

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-12-31 09:23:52 - r327430 by cperciva (Colin Percival)

Complete list of files affected by revision r327430:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/geom/geom_event.c  
  History   Contents   Diff   MODIFY   /head/sys/kern/subr_autoconf.c  
  History   Contents   Diff   MODIFY   /head/sys/kern/vfs_mountroot.c  

Commit message:

Instrument "boot holds" for the benefit of the TSLOG framework. These
are places where the "main thread" of the booting kernel (either the
thread which later becomes swapper or the thread which later becomes
init) has to stop and wait for action to take place in another thread
before continuing.

There are currently three such holds:
1. The intr_config_hooks SYSINIT waits for hooks registered via the
config_intrhook_establish function; this allows (typically) devices
which need interrupts enabled to complete their initialization to do
so before root is mounted.

2. The g_waitidle function waits for the GEOM event queue to be empty;
this ensures that all of the disks which have been attached have been
tasted before we attempt to mount root.

3. The vfs_mountroot_wait function (in addition to calling g_waitidle)
waits for holds registered via root_mount_hold; among other things, this
is used by the USB subsystem to ensure that we don't fail to mount root
if it's located on a USB disk which takes a while to probe.


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 39 ms, 3 files printed. Current time is 2018-04-20 14:35:01. All times are in UTC/GMT.