OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman
cvs@GRAND.CENTRAL.ORG
cvs@GRAND.CENTRAL.ORG
Thu, 28 Feb 2008 12:16:29 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.h cm_conn.c cm_dcache.h cm_vnodeops.c smb.c smb.h smb3.c
Log Message:
DELTA windows-smb-lock-timeouts-20080228
AUTHOR jaltman@secure-endpoints.com
LICENSE MIT
Attempts to open files which are already write-locked by another
client took forever to return a lock not granted error. This
was because cm_Analyze() would retry the lock request for up to
the RDRtimeout in response to the EAGAIN error. The problem
was that cm_IntSetLock() was not setting the CM_REQ_NORETRY flag.
While examining this issue, discovered two other things:
(1) the infinite wait logic on lock request processing was broken
(2) the cancel outstanding lock request logic wasn't implemented
(3) cm_Analyze() would put the thread to sleep even when retries
were not permitted.
Also removed a number of compile time warnings.
--- DELTA config follows ---
windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/cm.h 1.29 1.30
windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/cm_conn.c 1.85 1.86
windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/cm_dcache.h 1.9 1.10
windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/cm_vnodeops.c 1.135 1.136
windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/smb.c 1.184 1.185
windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/smb.h 1.68 1.69
windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/smb3.c 1.151 1.152