summaryrefslogtreecommitdiffstats
path: root/sys/kern/exec_elf.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2021-02-08 10:51:01 +0000
committermpi <mpi@openbsd.org>2021-02-08 10:51:01 +0000
commit193f316ca4f334f3f72dda8dd972766eb44d7405 (patch)
tree9c48c809bd63753d663fc6594b39a6cc41d65de3 /sys/kern/exec_elf.c
parentExtend binary operators support, required for more filter features. (diff)
downloadwireguard-openbsd-193f316ca4f334f3f72dda8dd972766eb44d7405.tar.xz
wireguard-openbsd-193f316ca4f334f3f72dda8dd972766eb44d7405.zip
Revert the convertion of per-process thread into a SMR_TAILQ.
We did not reach a consensus about using SMR to unlock single_thread_set() so there's no point in keeping this change.
Diffstat (limited to 'sys/kern/exec_elf.c')
-rw-r--r--sys/kern/exec_elf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c
index dff4c99c341..4fa5ec22aab 100644
--- a/sys/kern/exec_elf.c
+++ b/sys/kern/exec_elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.c,v 1.157 2021/01/17 15:28:21 mvs Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.158 2021/02/08 10:51:01 mpi Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -85,7 +85,6 @@
#include <sys/signalvar.h>
#include <sys/stat.h>
#include <sys/pledge.h>
-#include <sys/smr.h>
#include <sys/mman.h>
@@ -1361,7 +1360,7 @@ coredump_notes_elf(struct proc *p, void *iocookie, size_t *sizep)
* threads in the process have been stopped and the list can't
* change.
*/
- SMR_TAILQ_FOREACH_LOCKED(q, &pr->ps_threads, p_thr_link) {
+ TAILQ_FOREACH(q, &pr->ps_threads, p_thr_link) {
if (q == p) /* we've taken care of this thread */
continue;
error = coredump_note_elf(q, iocookie, &notesize);