Date: Wed, 14 Nov 2018 19:10:35 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r340443 - head/sys/kern Message-ID: <201811141910.wAEJAZd5085884@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Wed Nov 14 19:10:35 2018 New Revision: 340443 URL: https://svnweb.freebsd.org/changeset/base/340443 Log: Initialize compatibility epoch tracker for thread0. Fixes panics for drivers that call if_maddr_lock() during startup. Reported by: cy Modified: head/sys/kern/init_main.c Modified: head/sys/kern/init_main.c ============================================================================== --- head/sys/kern/init_main.c Wed Nov 14 19:06:43 2018 (r340442) +++ head/sys/kern/init_main.c Wed Nov 14 19:10:35 2018 (r340443) @@ -52,6 +52,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/kernel.h> +#include <sys/epoch.h> #include <sys/exec.h> #include <sys/file.h> #include <sys/filedesc.h> @@ -510,6 +511,7 @@ proc0_init(void *dummy __unused) td->td_pflags = TDP_KTHREAD; td->td_cpuset = cpuset_thread0(); td->td_domain.dr_policy = td->td_cpuset->cs_domain; + epoch_thread_init(td); prison0_init(); p->p_peers = 0; p->p_leader = p;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811141910.wAEJAZd5085884>