OpenAFS CVS Commit: openafs/src/WINNT/afsd by shadow
Thu, 01 Jun 2006 11:39:51 EDT
Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/data/sb/openafs-devel-1_5_x/src/WINNT/afsd
cm_aclent.c cm_scache.c cm_vnodeops.c
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-devel-1_5_x follows ---
DEVEL15-windows-head-tail-queue-removal-20060525 openafs/src/WINNT/afsd/cm_aclent.c 1.14 18.104.22.168
DEVEL15-windows-head-tail-queue-removal-20060525 openafs/src/WINNT/afsd/cm_scache.c 1.35 22.214.171.124
DEVEL15-windows-head-tail-queue-removal-20060525 openafs/src/WINNT/afsd/cm_vnodeops.c 1.69 126.96.36.199