Giant is no longer required by vm_waitproc() and vmspace_exitfree().

Eliminate it acquisition and release around vm_waitproc() in kern_wait().
This commit is contained in:
Alan Cox 2004-07-30 20:31:02 +00:00
parent 350fb8ae6a
commit 9be60284a6
2 changed files with 0 additions and 3 deletions

View File

@ -690,9 +690,7 @@ kern_wait(struct thread *td, pid_t pid, int *status, int options, struct rusage
* 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

View File

@ -681,7 +681,6 @@ vm_waitproc(p)
struct proc *p;
{
GIANT_REQUIRED;
vmspace_exitfree(p); /* and clean-out the vmspace */
}