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

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Wed, 27 Feb 2008 12:06:44 EST


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_buf.c cm_dir.c cm_dnlc.c cm_vnodeops.c 
Log Message:
DELTA DEVEL15-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 for openafs-devel-1_5_x follows ---
DEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/afsd/cm_buf.c 1.31.2.28 1.31.2.29
DEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/afsd/cm_dir.c 1.4.4.11 1.4.4.12
DEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/afsd/cm_dnlc.c 1.10.4.4 1.10.4.5
DEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/afsd/cm_vnodeops.c 1.69.2.64 1.69.2.65