diff options
author | arr <arr@FreeBSD.org> | 2002-07-01 03:15:16 +0000 |
---|---|---|
committer | arr <arr@FreeBSD.org> | 2002-07-01 03:15:16 +0000 |
commit | 5bf62873ebd421c4e04e01a425e33f4d3df359e1 (patch) | |
tree | fb38bafed28b47ca68c7c4f9fdc73253146f2dda /sys/kern/kern_thread.c | |
parent | 1968255d116eee2a196f65cc493d602f54ee8517 (diff) | |
download | FreeBSD-src-5bf62873ebd421c4e04e01a425e33f4d3df359e1.zip FreeBSD-src-5bf62873ebd421c4e04e01a425e33f4d3df359e1.tar.gz |
- In thread_userret(), remove the Giant locking and unlocking around the
call to thread_alloc().
Approved by: julian
Reviewed by: jake, jeff
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r-- | sys/kern/kern_thread.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index b6a2275..d7bef81 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) { /* |