DragonFly commits List (threaded) for 2009-06
DragonFly BSD
DragonFly commits List (threaded) for 2009-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Aggelos Economopoulos <aggelos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 8 Jun 2009 07:55:11 -0700 (PDT)

commit 9d7a637e6808396b43ab61ee634665b49704f752
Author: Aggelos Economopoulos <aoiko@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]