PERFORCE change 139549 for review

Sam Leffler sam at FreeBSD.org
Tue Apr 8 01:26:54 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=139549

Change 139549 by sam at sam_ebb on 2008/04/08 01:26:37

	handle the case where we're loaded after root is mounted
	Submitted by:	mlaier

Affected files ...

.. //depot/projects/vap/sys/kern/subr_firmware.c#4 edit

Differences ...

==== //depot/projects/vap/sys/kern/subr_firmware.c#4 (text+ko) ====

@@ -388,7 +388,7 @@
 }
 
 /*
- * Event handler called on mounting of /.  Bounce a task
+ * Event handler called on mounting of /; bounce a task
  * into the task queue thread to setup it's directories.
  */
 static void
@@ -475,6 +475,13 @@
 		/* NB: use our own loop routine that sets up context */
 		(void) taskqueue_start_threads(&firmware_tq, 1, PWAIT,
 		    "firmware taskq");
+		if (rootvnode != NULL) {
+			/* 
+			 * Root is already mounted so we won't get an event;
+			 * simulate one here.
+			 */
+			firmware_mountroot(NULL);
+		}
 		return 0;
 
 	case MOD_UNLOAD:


More information about the p4-projects mailing list