mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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:
parent
350fb8ae6a
commit
9be60284a6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132898
sys
@ -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
|
||||
|
@ -681,7 +681,6 @@ vm_waitproc(p)
|
||||
struct proc *p;
|
||||
{
|
||||
|
||||
GIANT_REQUIRED;
|
||||
vmspace_exitfree(p); /* and clean-out the vmspace */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user