Giant is no longer required in kern_setrlimit(); remove its acquisition and
release. Reviewed by: jhb
This commit is contained in:
parent
e225b3e66e
commit
47a9b57f58
@ -638,7 +638,6 @@ kern_setrlimit(td, which, limp)
|
||||
vm_size_t size;
|
||||
vm_prot_t prot;
|
||||
|
||||
mtx_lock(&Giant);
|
||||
if (limp->rlim_cur > oldssiz) {
|
||||
prot = p->p_sysent->sv_stackprot;
|
||||
size = limp->rlim_cur - oldssiz;
|
||||
@ -653,7 +652,6 @@ kern_setrlimit(td, which, limp)
|
||||
size = round_page(size);
|
||||
(void)vm_map_protect(&p->p_vmspace->vm_map,
|
||||
addr, addr + size, prot, FALSE);
|
||||
mtx_unlock(&Giant);
|
||||
}
|
||||
}
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user