kernel - MPSAFE work - Remove unneeded token acquire/releases in vm_mmap.c
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Mon, 14 Jun 2010 13:34:17 +0000 (06:34 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Mon, 14 Jun 2010 13:34:17 +0000 (06:34 -0700)
commit8611a34052f23b4b66f34134c0885670751d8f87
treeeeae426ac0a9dd6ec2070c4726f5e051889874e4
parentc5c91ee6c4cc54a93a2ecbf8063ca8719d8de59d
kernel - MPSAFE work - Remove unneeded token acquire/releases in vm_mmap.c

Many calls in vm_mmap did not need to hold the vm_token; the underlying
vm_map_* calls are self-synchronizing via a lockmgr lock on the map itself and
the rest of the calls were synchronized by taking tokens.

Comment the remaining token acquires/releases.

'Less Lock, More Rock'
sys/vm/vm_mmap.c