OpenAFS CVS Commit: openafs/src/WINNT/client_osi by shadow
Thu, 01 Jun 2006 11:39:55 EDT
Update of /cvs/openafs/src/WINNT/client_osi
In directory GRAND.CENTRAL.ORG:/data/sb/openafs-devel-1_5_x/src/WINNT/client_osi
libosi.def osiqueue.c osiqueue.h osisleep.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/client_osi/libosi.def 1.3 184.108.40.206
DEVEL15-windows-head-tail-queue-removal-20060525 openafs/src/WINNT/client_osi/osiqueue.c 1.3 220.127.116.11
DEVEL15-windows-head-tail-queue-removal-20060525 openafs/src/WINNT/client_osi/osiqueue.h 1.2 18.104.22.168
DEVEL15-windows-head-tail-queue-removal-20060525 openafs/src/WINNT/client_osi/osisleep.c 1.5 22.214.171.124