summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_mmap.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-05-26 04:54:56 +0000
committeralc <alc@FreeBSD.org>2002-05-26 04:54:56 +0000
commit642723e24c07655d751a6bde16c4f809733896c4 (patch)
tree65229c4dfc5ab5c5c294cccbacebe1579ea7c2be /sys/vm/vm_mmap.c
parentda8203a816e7d32a08b1a05af847a87122447654 (diff)
downloadFreeBSD-src-642723e24c07655d751a6bde16c4f809733896c4.zip
FreeBSD-src-642723e24c07655d751a6bde16c4f809733896c4.tar.gz
o Acquire and release Giant around pmap operations in vm_fault_unwire()
and vm_map_delete(). Assert GIANT_REQUIRED in vm_map_delete() only if operating on the kernel_object or the kmem_object. o Remove GIANT_REQUIRED from vm_map_remove(). o Remove the acquisition and release of Giant from munmap().
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r--sys/vm/vm_mmap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index 750ab07..c003353 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -615,9 +615,7 @@ munmap(td, uap)
return (EINVAL);
/* returns nothing but KERN_SUCCESS anyway */
- mtx_lock(&Giant);
(void) vm_map_remove(map, addr, addr + size);
- mtx_unlock(&Giant);
return (0);
}
OpenPOWER on IntegriCloud