o Remove the acquisition and release of Giant from munlock().

Reviewed by:	tegge
This commit is contained in:
Alan Cox 2002-06-15 05:05:04 +00:00
parent 3db951841c
commit e30616dbfe

View File

@ -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);
}