summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-12-22 17:32:52 +0000
committeralc <alc@FreeBSD.org>2008-12-22 17:32:52 +0000
commit9e986ac16e888641c9e9fcd1e44ca74b8c201603 (patch)
tree480284d973eab224f1675ea25fb7b599ab8edd56 /gnu
parent1681c4addb7b643f92793b4a1f15749f6b1a7ba2 (diff)
downloadFreeBSD-src-9e986ac16e888641c9e9fcd1e44ca74b8c201603.zip
FreeBSD-src-9e986ac16e888641c9e9fcd1e44ca74b8c201603.tar.gz
Make preparations for resurrecting shared/read locks on vm maps:
mac_proc_vm_revoke_recurse() requests a read lock on the vm map at the start but does not handle failure by vm_map_lock_upgrade() when it seeks to modify the vm map. At present, this works because all lock request on a vm map are implemented as exclusive locks. Thus, vm_map_lock_upgrade() is a no-op that always reports success. However, that is about to change, and proc_vm_revoke_recurse() will require substantial modifications to handle vm_map_lock_upgrade() failures. For the time being, I am changing mac_proc_vm_revoke_recurse() to request a write lock on the vm map at the start. Approved by: rwatson MFC after: 3 months
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud