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
This commit is contained in:
Konstantin Belousov 2021-07-02 01:30:59 +03:00
parent 28a66fc3da
commit 747a6b7ace
2 changed files with 0 additions and 6 deletions

View File

@ -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);

View File

@ -45,7 +45,6 @@ __FBSDID("$FreeBSD$");
#include <sys/sched.h>
#include <sys/syscallsubr.h>
#include <sys/sx.h>
#include <sys/umtx.h>
#include <sys/unistd.h>
#include <sys/wait.h>
@ -376,8 +375,6 @@ linux_exit(struct thread *td, struct linux_exit_args *args)
LINUX_CTR2(exit, "thread(%d) (%d)", em->em_tid, args->rval);
umtx_thread_exit(td);
linux_thread_detach(td);
/*