OpenAFS CVS Commit: openafs/src/auth by jaltman
Sat, 13 Mar 2004 16:07:36 EST
Update of /cvs/openafs/src/auth
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-tree/src/auth
This is an initial crack at one of the big problems with the existing
AFS client. Multiple processes in a single session or in multiple
sessions (terminal server) can step on each others toes. This is
because the dual use of RPC and SMB calls to perform operations.
Since nothing is done in a single synchronized step, there are plenty
of opportunities for data overwrites to occur.
The change was to add a Global Mutex within all of the ktc_XXXToken
calls. The use of "Global\" prefixed kernel objects are only supported
on Win2000 and above. This is fine because this is all we claim to
support. But if someone was to decide to run this code on NT4 or Win95
anyway bad things will now happen. This should probably be cleaned up
if someone has time.
--- DELTA config follows ---
mutex-token-access-20040313 openafs/src/auth/ktc_nt.c 1.9 1.10