DragonFly-2.3.0.890.g9d7a6 master sys/kern kern_exit.c kern_lock

看板DFBSD_commit作者時間16年前 (2009/06/09 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1ABL7m00 (DFBSD_commit)