summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_thread.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-03-21 01:39:44 +0000
committerkib <kib@FreeBSD.org>2015-03-21 01:39:44 +0000
commit48a0d48fb5a8382e19f93ab4c1faa34d06cfa1e7 (patch)
treebec0d412be0a696c8494b879c8e6ddcf97edbe1d /sys/kern/kern_thread.c
parentfe7bfd664683289b1b664debb31903b1cac6c5a3 (diff)
downloadFreeBSD-src-48a0d48fb5a8382e19f93ab4c1faa34d06cfa1e7.zip
FreeBSD-src-48a0d48fb5a8382e19f93ab4c1faa34d06cfa1e7.tar.gz
MFC r279390:
Change umtx_lock to be the sleepable mutex.
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r--sys/kern/kern_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index 62d92b0..0549c07 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -414,7 +414,6 @@ thread_exit(void)
#ifdef AUDIT
AUDIT_SYSCALL_EXIT(0, td);
#endif
- umtx_thread_exit(td);
/*
* drop FPU & debug register state storage, or any other
* architecture specific resources that
@@ -863,6 +862,7 @@ thread_suspend_check(int return_instead)
tidhash_remove(td);
PROC_LOCK(p);
tdsigcleanup(td);
+ umtx_thread_exit(td);
PROC_SLOCK(p);
thread_stopped(p);
thread_exit();
OpenPOWER on IntegriCloud