aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-11-23 18:26:47 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-11-23 18:26:47 +0000
commita9568cd2bcc2939a5640eb55061fd9d9828f5c97 (patch)
tree30bf4a15063846d347efce66ff926561cb204328 /sys/sys/proc.h
parent4815f175d0324b851509adff0e82500cdf979c73 (diff)
downloadsrc-a9568cd2bcc2939a5640eb55061fd9d9828f5c97.tar.gz
src-a9568cd2bcc2939a5640eb55061fd9d9828f5c97.zip
thread: stash domain id to work around vtophys problems on ppc64
Adding to zombie list can be perfomed by idle threads, which on ppc64 leads to panics as it requires a sleepable lock. Reported by: alfredo Reviewed by: kib, markj Fixes: r367842 ("thread: numa-aware zombie reaping") Differential Revision: https://reviews.freebsd.org/D27288
Notes
Notes: svn path=/head/; revision=367961
Diffstat (limited to 'sys/sys/proc.h')
-rw-r--r--sys/sys/proc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index c593b500599c..95e73fa19e2f 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -246,6 +246,7 @@ struct thread {
sigqueue_t td_sigqueue; /* (c) Sigs arrived, not delivered. */
#define td_siglist td_sigqueue.sq_signals
u_char td_lend_user_pri; /* (t) Lend user pri. */
+ u_char td_allocdomain; /* (b) NUMA domain backing this struct thread. */
/* Cleared during fork1() */
#define td_startzero td_flags