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

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Thu, 28 Feb 2008 12:17:17 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.h cm_conn.c cm_dcache.h cm_vnodeops.c smb.c smb.h smb3.c 
Log Message:
DELTA DEVEL15-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 for openafs-devel-1_5_x follows ---
DEVEL15-windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/cm.h 1.17.2.11 1.17.2.12
DEVEL15-windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/cm_conn.c 1.49.2.35 1.49.2.36
DEVEL15-windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/cm_dcache.h 1.4.4.5 1.4.4.6
DEVEL15-windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/cm_vnodeops.c 1.69.2.65 1.69.2.66
DEVEL15-windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/smb.c 1.118.2.63 1.118.2.64
DEVEL15-windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/smb.h 1.41.2.26 1.41.2.27
DEVEL15-windows-smb-lock-timeouts-20080228 openafs/src/WINNT/afsd/smb3.c 1.95.2.55 1.95.2.56