diff options
author | alc <alc@FreeBSD.org> | 2004-07-30 20:38:30 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-07-30 20:38:30 +0000 |
commit | 9b295c2fd92cb825970d373cd60cb8e6a71ec98e (patch) | |
tree | faa2860aa76235455158a6f157cb6600621e1bb2 /sys/vm | |
parent | 6aaed2f8eac02130cae5b38ed6a2f86d01f68e15 (diff) | |
download | FreeBSD-src-9b295c2fd92cb825970d373cd60cb8e6a71ec98e.zip FreeBSD-src-9b295c2fd92cb825970d373cd60cb8e6a71ec98e.tar.gz |
- Push down the acquisition and release of Giant into pmap_protect() on
those architectures without pmap locking.
- Eliminate the acquisition and release of Giant from vm_map_protect().
(Translation: mprotect(2) runs to completion without touching Giant on
alpha, amd64, i386 and ia64.)
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_map.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index b5c6917..baacf70 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -1394,14 +1394,12 @@ vm_map_protect(vm_map_t map, vm_offset_t start, vm_offset_t end, * here -- CHECK THIS XXX */ if (current->protection != old_prot) { - mtx_lock(&Giant); #define MASK(entry) (((entry)->eflags & MAP_ENTRY_COW) ? ~VM_PROT_WRITE : \ VM_PROT_ALL) pmap_protect(map->pmap, current->start, current->end, current->protection & MASK(current)); #undef MASK - mtx_unlock(&Giant); } vm_map_simplify_entry(map, current); current = current->next; |