Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-9]: src/sys/kern Apply patch, requested by khorben in ticket #117...
details: https://anonhg.NetBSD.org/src/rev/b952a01bf383
branches: netbsd-9
changeset: 949150:b952a01bf383
user: martin <martin%NetBSD.org@localhost>
date: Sun Jan 03 12:51:33 2021 +0000
description:
Apply patch, requested by khorben in ticket #1177 (issue solved differently
in -current):
sys/kern/init_main.c (apply patch)
PR kern/55906: create the aiodone workqueue before running mountroothooks.
diffstat:
sys/kern/init_main.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (42 lines):
diff -r 2e1b0232ee47 -r b952a01bf383 sys/kern/init_main.c
--- a/sys/kern/init_main.c Sat Jan 02 10:24:42 2021 +0000
+++ b/sys/kern/init_main.c Sun Jan 03 12:51:33 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init_main.c,v 1.504.2.1 2020/11/14 15:36:11 martin Exp $ */
+/* $NetBSD: init_main.c,v 1.504.2.2 2021/01/03 12:51:33 martin 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.504.2.1 2020/11/14 15:36:11 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.504.2.2 2021/01/03 12:51:33 martin Exp $");
#include "opt_ddb.h"
#include "opt_inet.h"
@@ -668,6 +668,11 @@
cpu_rootconf();
cpu_dumpconf();
+ /* Create the aiodone daemon kernel thread. */
+ if (workqueue_create(&uvm.aiodone_queue, "aiodoned",
+ uvm_aiodone_worker, NULL, PRI_VM, IPL_NONE, WQ_MPSAFE))
+ panic("fork aiodoned");
+
/* Mount the root file system. */
do {
domountroothook(root_device);
@@ -736,11 +741,6 @@
NULL, NULL, "ioflush"))
panic("fork syncer");
- /* Create the aiodone daemon kernel thread. */
- if (workqueue_create(&uvm.aiodone_queue, "aiodoned",
- uvm_aiodone_worker, NULL, PRI_VM, IPL_NONE, WQ_MPSAFE))
- panic("fork aiodoned");
-
/* Wait for final configure threads to complete. */
config_finalize_mountroot();
Home |
Main Index |
Thread Index |
Old Index