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

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Thu, 25 May 2006 13:18:43 EDT


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

Modified Files:
      Tag: openafs-stable-1_4_x
	cm_aclent.c cm_scache.c cm_vnodeops.c 
Log Message:
DELTA STABLE14-windows-head-tail-queue-removal-20060525
AUTHOR jaltman@secure-endpoints.com

while investigating the cause of the delayed write errors it was observed
that all of the sleep queues are LIFO.  This has the side effect of
encouraging starvation.  Changing the queues to FIFOs revealed a serious
problem affecting the use of all queues which use both head and tail
pointers.  The removal function osi_QRemove does not take a tail pointer
and therefore the pointer is always left hanging.  If the number of elements
ever drops to zero the queue becomes corrupted.

Added osi_QRemoveHT to be used whenever head and tail pointers are used.
Updated all callers in afsd.


--- DELTA config for openafs-stable-1_4_x follows ---
STABLE14-windows-head-tail-queue-removal-20060525 openafs/src/WINNT/afsd/cm_aclent.c 1.4.2.9 1.4.2.10
STABLE14-windows-head-tail-queue-removal-20060525 openafs/src/WINNT/afsd/cm_scache.c 1.14.2.15 1.14.2.16
STABLE14-windows-head-tail-queue-removal-20060525 openafs/src/WINNT/afsd/cm_vnodeops.c 1.19.2.37 1.19.2.38