From c0854cd34140e94e42533aaa3d170e4cda09f1ee Mon Sep 17 00:00:00 2001 From: "Andrew R. Reiter" Date: Mon, 1 Jul 2002 03:15:16 +0000 Subject: [PATCH] - In thread_userret(), remove the Giant locking and unlocking around the call to thread_alloc(). Approved by: julian Reviewed by: jake, jeff --- sys/kern/kern_kse.c | 2 -- sys/kern/kern_thread.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index b6a2275c51bd..d7bef81620ee 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -436,9 +436,7 @@ thread_userret(struct proc *p, struct ksegrp *kg, struct kse *ke, int error = 0; if (ke->ke_tdspare == NULL) { - mtx_lock(&Giant); ke->ke_tdspare = thread_alloc(); - mtx_unlock(&Giant); } if (td->td_flags & TDF_UNBOUND) { /* diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index b6a2275c51bd..d7bef81620ee 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -436,9 +436,7 @@ thread_userret(struct proc *p, struct ksegrp *kg, struct kse *ke, int error = 0; if (ke->ke_tdspare == NULL) { - mtx_lock(&Giant); ke->ke_tdspare = thread_alloc(); - mtx_unlock(&Giant); } if (td->td_flags & TDF_UNBOUND) { /*