summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-11-25 20:21:52 +0000
committeralc <alc@FreeBSD.org>1999-11-25 20:21:52 +0000
commit7f96711685a7ad2d836d4782c997fa98f82cf736 (patch)
tree77a323c4aba61366e24ac8f2a7f45cfa81aaa898 /sys/vm/vm_map.c
parentfec55b2fd421c372bbeb916144735a3ecf5fa5ac (diff)
downloadFreeBSD-src-7f96711685a7ad2d836d4782c997fa98f82cf736.zip
FreeBSD-src-7f96711685a7ad2d836d4782c997fa98f82cf736.tar.gz
Remove nonsensical vm_map_{clear,set}_recursive() calls
from vm_map_pageable(). At the point they called, vm_map_pageable() holds a read (or shared) lock on the map. The purpose of vm_map_{clear,set}_recursive() is to disable/enable repeated write (or exclusive) lock requests by the same process.
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index ca42708..eaa65f7 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -1496,7 +1496,6 @@ vm_map_pageable(map, start, end, new_pageable)
if (vm_map_pmap(map) == kernel_pmap) {
vm_map_unlock(map); /* trust me ... */
} else {
- vm_map_set_recursive(map);
vm_map_lock_downgrade(map);
}
@@ -1526,8 +1525,6 @@ vm_map_pageable(map, start, end, new_pageable)
if (vm_map_pmap(map) == kernel_pmap) {
vm_map_lock(map);
- } else {
- vm_map_clear_recursive(map);
}
if (rv) {
vm_map_unlock(map);
OpenPOWER on IntegriCloud