From 48a0d48fb5a8382e19f93ab4c1faa34d06cfa1e7 Mon Sep 17 00:00:00 2001 From: kib Date: Sat, 21 Mar 2015 01:39:44 +0000 Subject: MFC r279390: Change umtx_lock to be the sleepable mutex. --- sys/kern/kern_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/kern_thread.c') 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(); -- cgit v1.1