From 82e55fdf7687982550eb5f4127031095fdf8d75a Mon Sep 17 00:00:00 2001 From: alc Date: Fri, 3 Sep 2004 05:11:32 +0000 Subject: Push Giant deep into vm_forkproc(), acquiring it only if the process has mapped System V shared memory segments (see shmfork_myhook()) or requires the allocation of an ldt (see vm_fault_wire()). --- sys/vm/vm_map.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'sys/vm/vm_map.c') diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 2a486e8..3788a4f 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -2482,8 +2482,6 @@ vmspace_fork(struct vmspace *vm1) vm_map_entry_t new_entry; vm_object_t object; - GIANT_REQUIRED; - vm_map_lock(old_map); vm2 = vmspace_alloc(old_map->min_offset, old_map->max_offset); @@ -2942,7 +2940,6 @@ vmspace_unshare(struct proc *p) struct vmspace *oldvmspace = p->p_vmspace; struct vmspace *newvmspace; - GIANT_REQUIRED; if (oldvmspace->vm_refcnt == 1) return; newvmspace = vmspace_fork(oldvmspace); -- cgit v1.1