Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Initialize the bufq code right before we're ready t...



details:   https://anonhg.NetBSD.org/src/rev/fd91b329f779
branches:  trunk
changeset: 819077:fd91b329f779
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Nov 16 12:31:33 2016 +0000

description:
Initialize the bufq code right before we're ready to load the strategy
modules.

diffstat:

 sys/kern/init_main.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r 4a71735066c7 -r fd91b329f779 sys/kern/init_main.c
--- a/sys/kern/init_main.c      Wed Nov 16 10:43:37 2016 +0000
+++ b/sys/kern/init_main.c      Wed Nov 16 12:31:33 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_main.c,v 1.486 2016/11/16 10:42:14 pgoyette Exp $ */
+/*     $NetBSD: init_main.c,v 1.487 2016/11/16 12:31:33 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.486 2016/11/16 10:42:14 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.487 2016/11/16 12:31:33 pgoyette Exp $");
 
 #include "opt_ddb.h"
 #include "opt_inet.h"
@@ -428,9 +428,6 @@
        /* Second part of module system initialization. */
        module_start_unload_thread();
 
-       /* Initialize the bufq strategy sub-system */
-       bufq_init();
-
        /* Initialize the file systems. */
 #ifdef NVNODE_IMPLICIT
        /*
@@ -485,9 +482,11 @@
        soinit1();
 
        /*
-        * Initialize the bufq strategy modules - they may be needed
-        * by some devices during configuration
+        * Initialize the bufq strategy sub-system and any built-in
+        * strategy modules - they may be needed by some devices during
+        * auto-configuration
         */
+       bufq_init();
        module_init_class(MODULE_CLASS_BUFQ);
 
        /* Configure the system hardware.  This will enable interrupts. */



Home | Main Index | Thread Index | Old Index