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

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Wed, 27 Feb 2008 12:03:34 EST


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

Modified Files:
	libosi.def osibasel.c osibasel.h osilog.h osiltype.h 
	osistatl.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/client_osi/libosi.def 1.4 1.5
windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/client_osi/osibasel.c 1.6 1.7
windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/client_osi/osibasel.h 1.7 1.8
windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/client_osi/osilog.h 1.8 1.9
windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/client_osi/osiltype.h 1.2 1.3
windows-osi-convertRToW-and-logging-optimizations-20080227 openafs/src/WINNT/client_osi/osistatl.c 1.3 1.4