Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jul 2021 22:31:11 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: df674da44ef9 - stable/13 - cloudabi and linux ABIs: do not call umtx_thread_cleanup() from thr_exit syscall
Message-ID:  <202107212231.16LMVBMD089961@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=df674da44ef9e565afb1edb36fd730a34b4aaf9f

commit df674da44ef9e565afb1edb36fd730a34b4aaf9f
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-07-01 22:30:59 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-07-21 22:11:52 +0000

    cloudabi and linux ABIs: do not call umtx_thread_cleanup() from thr_exit syscall
    
    (cherry picked from commit 747a6b7ace3dd9401289bde8c4e7fc91b8dc18dc)
---
 sys/compat/cloudabi/cloudabi_thread.c | 3 ---
 sys/compat/linux/linux_fork.c         | 3 ---
 2 files changed, 6 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);
 
diff --git a/sys/compat/linux/linux_fork.c b/sys/compat/linux/linux_fork.c
index ed4adcf8a175..8230d5b4108b 100644
--- a/sys/compat/linux/linux_fork.c
+++ b/sys/compat/linux/linux_fork.c
@@ -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);
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107212231.16LMVBMD089961>