aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/cloudabi
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-07-01 22:30:59 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-07-07 11:12:14 +0000
commit747a6b7ace3dd9401289bde8c4e7fc91b8dc18dc (patch)
tree1b3a9cc90f75fa951aa53d01adc3be4cafb9fefd /sys/compat/cloudabi
parent28a66fc3da3460850520389971e1194f5327f560 (diff)
cloudabi and linux ABIs: do not call umtx_thread_cleanup() from thr_exit syscall
These ABIs do not use umtx at all, so there is nothing to clean. Cloudabi references to umtx keys do not require any cleanups anyway. Requested by: dchagin Reviewed by: dchagin, markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D30987
Diffstat (limited to 'sys/compat/cloudabi')
-rw-r--r--sys/compat/cloudabi/cloudabi_thread.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/compat/cloudabi/cloudabi_thread.c b/sys/compat/cloudabi/cloudabi_thread.c
index e70549b6e332..f920b8b41ee8 100644
--- a/sys/compat/cloudabi/cloudabi_thread.c
+++ b/sys/compat/cloudabi/cloudabi_thread.c
@@ -30,7 +30,6 @@ __FBSDID("$FreeBSD$");
#include <sys/proc.h>
#include <sys/sched.h>
#include <sys/syscallsubr.h>
-#include <sys/umtx.h>
#include <contrib/cloudabi/cloudabi_types_common.h>
@@ -45,8 +44,6 @@ cloudabi_sys_thread_exit(struct thread *td,
.scope = uap->scope,
};
- umtx_thread_exit(td);
-
/* Wake up joining thread. */
cloudabi_sys_lock_unlock(td, &cloudabi_sys_lock_unlock_args);