aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2008-03-19 06:19:01 +0000
committerJeff Roberson <jeff@FreeBSD.org>2008-03-19 06:19:01 +0000
commit374ae2a39338777f5f9ef0ed726fff2a5dee6485 (patch)
tree720fece23c8482c35e341e275a0f4068ee43126f /sys/kern/kern_exit.c
parentb23372cd8ee7abcc1b32caf4cf72d5bd12f7102f (diff)
downloadsrc-374ae2a39338777f5f9ef0ed726fff2a5dee6485.tar.gz
src-374ae2a39338777f5f9ef0ed726fff2a5dee6485.zip
- Relax requirements for p_numthreads, p_threads, p_swtick, and p_nice from
requiring the per-process spinlock to only requiring the process lock. - Reflect these changes in the proc.h documentation and consumers throughout the kernel. This is a substantial reduction in locking cost for these fields and was made possible by recent changes to threading support.
Notes
Notes: svn path=/head/; revision=177368
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 910f742f7d6a..d2e22e9ff5e9 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -510,9 +510,7 @@ exit1(struct thread *td, int rv)
* proc lock.
*/
wakeup(p->p_pptr);
- PROC_SLOCK(p->p_pptr);
sched_exit(p->p_pptr, td);
- PROC_SUNLOCK(p->p_pptr);
PROC_SLOCK(p);
p->p_state = PRS_ZOMBIE;
PROC_UNLOCK(p->p_pptr);