OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Sat, 03 Nov 2007 12:19:28 EDT


Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-5/src/WINNT/afsd

Modified Files:
      Tag: openafs-devel-1_5_x
	cm_dir.c cm_dir.h 
Log Message:
DELTA DEVEL15-windows-dir-20071103
AUTHOR jaltman@secure-endpoints.com

Reorganize the locking for cm_BeginDirOp and cm_EndDirOp.
There are a number of locations where locks are obtained, dropped, and
reobtained.  This reorganization attempts to accomplish several things:

(1) be optimistic for the most common case so it will be fast

(2) add consistency checks after each location where locks are dropped
    and re-obtained.  If we lose a race in cm_BeginDirOp and the bplus
    tree is out of date, retry until we get to a consistent state
    that we can use.

(3) Ensure that all operations take place with the correct locks.


--- DELTA config for openafs-devel-1_5_x follows ---
DEVEL15-windows-dir-20071103 openafs/src/WINNT/afsd/cm_dir.c 1.4.4.7 1.4.4.8
DEVEL15-windows-dir-20071103 openafs/src/WINNT/afsd/cm_dir.h 1.4.4.5 1.4.4.6