svn commit: r252874 - stable/9/sys/kern

Andriy Gapon avg at FreeBSD.org
Sat Jul 6 08:51:57 UTC 2013


Author: avg
Date: Sat Jul  6 08:51:56 2013
New Revision: 252874
URL: http://svnweb.freebsd.org/changeset/base/252874

Log:
  MFC r248645: post mountroot event after a real/final root is mounted

Modified:
  stable/9/sys/kern/vfs_mountroot.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/vfs_mountroot.c
==============================================================================
--- stable/9/sys/kern/vfs_mountroot.c	Sat Jul  6 08:43:49 2013	(r252873)
+++ stable/9/sys/kern/vfs_mountroot.c	Sat Jul  6 08:51:56 2013	(r252874)
@@ -199,8 +199,6 @@ set_rootvnode(void)
 	VREF(rootvnode);
 
 	FILEDESC_XUNLOCK(p->p_fd);
-
-	EVENTHANDLER_INVOKE(mountroot);
 }
 
 static int
@@ -994,6 +992,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 *


More information about the svn-src-all mailing list