From 8446303e012e9040420972bab20548a01d2189cb Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Tue, 1 Apr 2003 02:32:53 +0000 Subject: [PATCH] - thr_exit() should no longer be called with Giant held. --- sys/kern/kern_thr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 6ee3b5ca14dd..31c638ecb434 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -209,8 +209,6 @@ thr_exit(struct thread *td, struct thr_exit_args *uap) * This unlocks proc and doesn't return unless this is the last * thread. */ - while (mtx_owned(&Giant)) - mtx_unlock(&Giant); thr_exit1(); mtx_unlock_spin(&sched_lock);