git: kernel - MPSAFE work - Remove unneeded token acquire/releases in vm_mmap.c

Venkatesh Srinivas vsrinivas at crater.dragonflybsd.org
Mon Jun 14 06:44:48 PDT 2010


commit 8611a34052f23b4b66f34134c0885670751d8f87
Author: Venkatesh Srinivas <me at endeavour.zapto.org>
Date:   Mon Jun 14 06:34:17 2010 -0700

    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'

Summary of changes:
 sys/vm/vm_mmap.c |   47 +++++++++++++++++++++++++----------------------
 1 files changed, 25 insertions(+), 22 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8611a34052f23b4b66f34134c0885670751d8f87


-- 
DragonFly BSD source repository





More information about the Commits mailing list