Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2018 18:07:16 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339664 - head/sys/vm
Message-ID:  <201810231807.w9NI7Gxw073684@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810231807.w9NI7Gxw073684>