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

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


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

Modified Files:
      Tag: openafs-devel-1_5_x
	libosi.def osibasel.c osibasel.h osilog.h osiltype.h 
	osistatl.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/client_osi/libosi.def 1.3.14.1 1.3.14.2
DEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/client_osi/osibasel.c 1.4.4.2 1.4.4.3
DEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/client_osi/osibasel.h 1.5.4.2 1.5.4.3
DEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/client_osi/osilog.h 1.7 1.7.4.1
DEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/client_osi/osiltype.h 1.2 1.2.4.1
DEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/client_osi/osistatl.c 1.3 1.3.4.1