o Remove the acquisition and release of Giant from munlock().
Reviewed by: tegge
This commit is contained in:
parent
3db951841c
commit
e30616dbfe
@ -1092,10 +1092,8 @@ munlock(td, uap)
|
||||
return (error);
|
||||
#endif
|
||||
|
||||
mtx_lock(&Giant);
|
||||
error = vm_map_unwire(&td->td_proc->p_vmspace->vm_map, addr,
|
||||
addr + size, TRUE);
|
||||
mtx_unlock(&Giant);
|
||||
return (error == KERN_SUCCESS ? 0 : ENOMEM);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user