lock around accesses to uidinfo and varsymset
commit9d7a637e6808396b43ab61ee634665b49704f752
authorAggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Mon, 8 Jun 2009 14:42:46 +0000 (8 17:42 +0300)
committerAggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Mon, 8 Jun 2009 14:53:10 +0000 (8 17:53 +0300)
treeef104ff023a3eedad40597322c235d254f8d51c5
parent104d324f4652985759b15ee88db65e94166dea81
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.
sys/kern/kern_exit.c
sys/kern/kern_lockf.c
sys/kern/kern_resource.c
sys/kern/kern_varsym.c
sys/kern/syscalls.master
sys/sys/resourcevar.h
sys/sys/varsym.h