diff options
author | alc <alc@FreeBSD.org> | 2004-07-30 20:31:02 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-07-30 20:31:02 +0000 |
commit | 6aaed2f8eac02130cae5b38ed6a2f86d01f68e15 (patch) | |
tree | fa72db687a05682367866f58bd7dd001060d4d76 | |
parent | d41b07110086c23f078f65c2e666ab722482b9ee (diff) | |
download | FreeBSD-src-6aaed2f8eac02130cae5b38ed6a2f86d01f68e15.zip FreeBSD-src-6aaed2f8eac02130cae5b38ed6a2f86d01f68e15.tar.gz |
Giant is no longer required by vm_waitproc() and vmspace_exitfree().
Eliminate it acquisition and release around vm_waitproc() in kern_wait().
-rw-r--r-- | sys/kern/kern_exit.c | 2 | ||||
-rw-r--r-- | sys/vm/vm_glue.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 78f3feb..f53aa47 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -690,9 +690,7 @@ loop: * to free anything that cpu_exit couldn't * release while still running in process context. */ - mtx_lock(&Giant); vm_waitproc(p); - mtx_unlock(&Giant); #ifdef MAC mac_destroy_proc(p); #endif diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 4e083b8..7893012 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -681,7 +681,6 @@ vm_waitproc(p) struct proc *p; { - GIANT_REQUIRED; vmspace_exitfree(p); /* and clean-out the vmspace */ } |