diff options
author | avg <avg@FreeBSD.org> | 2013-03-23 08:59:34 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2013-03-23 08:59:34 +0000 |
commit | 1c06448efc44bc696e482ef025df81d7f3853e09 (patch) | |
tree | 0bee465a41993fa040822bce2f2a70d249f03e71 /sys/kern/vfs_mountroot.c | |
parent | 880c47f8a7d0d034cf91e208b1c15b9e7226b939 (diff) | |
download | FreeBSD-src-1c06448efc44bc696e482ef025df81d7f3853e09.zip FreeBSD-src-1c06448efc44bc696e482ef025df81d7f3853e09.tar.gz |
post mountroot event after a real/final root is mounted
not every time an intermediate root (including the first devfs) is
mounted.
This is also consistent with waking up via root_mount_complete.
Reviewed by: jhb
MFC after: 13 days
Diffstat (limited to 'sys/kern/vfs_mountroot.c')
-rw-r--r-- | sys/kern/vfs_mountroot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_mountroot.c b/sys/kern/vfs_mountroot.c index 147926e..162738d 100644 --- a/sys/kern/vfs_mountroot.c +++ b/sys/kern/vfs_mountroot.c @@ -199,8 +199,6 @@ set_rootvnode(void) VREF(rootvnode); FILEDESC_XUNLOCK(p->p_fd); - - EVENTHANDLER_INVOKE(mountroot); } static int @@ -991,6 +989,8 @@ vfs_mountroot(void) atomic_store_rel_int(&root_mount_complete, 1); wakeup(&root_mount_complete); mtx_unlock(&mountlist_mtx); + + EVENTHANDLER_INVOKE(mountroot); } static struct mntarg * |