DragonFly-2.3.0.890.g9d7a6 master sys/kern kern_exit.c kern_lockf.c kern_resource.c kern_varsym.c syscalls.master sys/sys resourcevar.h varsym.h

Aggelos Economopoulos aggelos at crater.dragonflybsd.org
Mon Jun 8 07:56:46 PDT 2009


commit 9d7a637e6808396b43ab61ee634665b49704f752
Author: Aggelos Economopoulos <aoiko at cc.ece.ntua.gr>
Date:   Mon Jun 8 17:42:46 2009 +0300

    lock around accesses to uidinfo and varsymset
    
    - add ->vx_lock to protect the varsymset fields
    - add ->ui_lock to protect the rest of the fields in uidinfo
    - protect the uidinfo hash
    - the varsym*() syscalls are now mpsafe
    
    This is obviously performance-irrelevant, but it allows
    access to uidinfo without the BGL.

Summary of changes:
 sys/kern/kern_exit.c     |    2 +
 sys/kern/kern_lockf.c    |   34 +++++++++------
 sys/kern/kern_resource.c |   99 ++++++++++++++++++++++++++++++++++------------
 sys/kern/kern_varsym.c   |   68 ++++++++++++++++++++++++-------
 sys/kern/syscalls.master |    6 +-
 sys/sys/resourcevar.h    |    4 ++
 sys/sys/varsym.h         |    3 +
 7 files changed, 159 insertions(+), 57 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9d7a637e6808396b43ab61ee634665b49704f752


-- 
DragonFly BSD source repository





More information about the Commits mailing list