OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman
cvs@GRAND.CENTRAL.ORG
cvs@GRAND.CENTRAL.ORG
Sat, 03 Nov 2007 12:18:14 EDT
Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/WINNT/afsd
Modified Files:
cm_dir.c cm_dir.h
Log Message:
DELTA 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 follows ---
windows-dir-20071103 openafs/src/WINNT/afsd/cm_dir.c 1.12 1.13
windows-dir-20071103 openafs/src/WINNT/afsd/cm_dir.h 1.9 1.10