svn commit: r339664 - head/sys/vm

Mark Johnston markj at FreeBSD.org
Tue Oct 23 18:07:17 UTC 2018


Author: markj
Date: Tue Oct 23 18:07:16 2018
New Revision: 339664
URL: https://svnweb.freebsd.org/changeset/base/339664

Log:
  Initialize static domainsets regardless of whether an SRAT is present.
  
  Reported by:	yuripv
  X-MFC with:	r339452
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/vm/vm_init.c
  head/sys/vm/vm_phys.c

Modified: head/sys/vm/vm_init.c
==============================================================================
--- head/sys/vm/vm_init.c	Tue Oct 23 17:53:35 2018	(r339663)
+++ head/sys/vm/vm_init.c	Tue Oct 23 18:07:16 2018	(r339664)
@@ -68,6 +68,7 @@
 __FBSDID("$FreeBSD$");
 
 #include <sys/param.h>
+#include <sys/domainset.h>
 #include <sys/kernel.h>
 #include <sys/lock.h>
 #include <sys/proc.h>
@@ -115,6 +116,11 @@ SYSINIT(vm_mem, SI_SUB_VM, SI_ORDER_FIRST, vm_mem_init
 static void
 vm_mem_init(void *dummy)
 {
+
+	/*
+	 * Initialize static domainsets, used by various allocators.
+	 */
+	domainset_init();
 
 	/*
 	 * Initializes resident memory structures. From here on, all physical

Modified: head/sys/vm/vm_phys.c
==============================================================================
--- head/sys/vm/vm_phys.c	Tue Oct 23 17:53:35 2018	(r339663)
+++ head/sys/vm/vm_phys.c	Tue Oct 23 18:07:16 2018	(r339664)
@@ -616,8 +616,6 @@ vm_phys_register_domains(int ndomains, struct mem_affi
 
 	for (i = 0; i < vm_ndomains; i++)
 		DOMAINSET_SET(i, &all_domains);
-
-	domainset_init();
 #else
 	(void)ndomains;
 	(void)affinity;


More information about the svn-src-all mailing list