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
This commit is contained in:
avg 2013-03-23 08:59:34 +00:00
parent 880c47f8a7
commit 1c06448efc

View File

@ -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 *