aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-11-11 08:50:04 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-11-11 08:50:04 +0000
commitaae3547be3f9f3072cf41ed1368a488defada7c7 (patch)
treee3bc42746511e6bee745afb643b85ccf7eb360e5 /sys/sys
parentcf31cadeb6b96b86cc8619a0a849f8e61b479a9a (diff)
downloadsrc-aae3547be3f9f3072cf41ed1368a488defada7c7.tar.gz
src-aae3547be3f9f3072cf41ed1368a488defada7c7.zip
thread: rework tidhash vs proc lock interaction
Apart from minor clean up this gets rid of proc unlock/lock cycle on thread exit to work around LOR against tidhash lock.
Notes
Notes: svn path=/head/; revision=367584
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/proc.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 47669d4af23a..474dc0f2c5b7 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -968,10 +968,6 @@ extern LIST_HEAD(pidhashhead, proc) *pidhashtbl;
extern struct sx *pidhashtbl_lock;
extern u_long pidhash;
extern u_long pidhashlock;
-#define TIDHASH(tid) (&tidhashtbl[(tid) & tidhash])
-extern LIST_HEAD(tidhashhead, thread) *tidhashtbl;
-extern u_long tidhash;
-extern struct rwlock tidhash_lock;
#define PGRPHASH(pgid) (&pgrphashtbl[(pgid) & pgrphash])
extern LIST_HEAD(pgrphashhead, pgrp) *pgrphashtbl;