OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman
cvs@GRAND.CENTRAL.ORG
cvs@GRAND.CENTRAL.ORG
Wed, 27 Feb 2008 12:03:30 EST
Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/WINNT/afsd
Modified Files:
cm_buf.c cm_dir.c cm_dnlc.c cm_vnodeops.c
Log Message:
DELTA windows-osi-convertRToW-and-logging-optimizations-20080227
AUTHOR jaltman@secure-endpoints.com
LICENSE MIT
Add lock_convertRToW which permits a read-lock to be upgraded to a
write lock. If the caller is the only reader it permits a fast
transition otherwise it adds the caller to the waiters queue.
In the osi_Log macros, check to see if the log is enabled before making
the function call. This avoids significant function call overhead.
In the cache manager, make use of the above.
--- DELTA config follows ---
windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/afsd/cm_buf.c 1.60 1.61
windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/afsd/cm_dir.c 1.16 1.17
windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/afsd/cm_dnlc.c 1.15 1.16
windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/afsd/cm_vnodeops.c 1.134 1.135