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

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Mon, 02 Oct 2006 23:23:22 EDT


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_access.c cm_buf.c cm_buf.h cm_callback.c cm_daemon.c 
	cm_daemon.h cm_dcache.c cm_dcache.h cm_ioctl.c cm_scache.c 
	cm_scache.h cm_vnodeops.c rawops.c smb.c smb.h smb3.c 
Log Message:
DELTA DEVEL15-windows-multi-fix-20061002
AUTHOR jaltman@secure-endpoints.com

Fix the following problems:

it is possible for a file to be created, buffers to become dirty from
writes, the file to be deleted, the stat cache entry to be reused, and
the dirty buffers to remain dirty until the end of time.

stat cache entry starvation can occur because of large numbers of dirty
buffers which take too long to be written to the file server.  The
thread that writes dirty buffers in background writes/checks a small
number of buffers, SQRT(buf-count), and then sleeps for 5 seconds.
Writing all of the dirty buffers via this algorithm produces untimely
results.

threads can end up waiting for a callback on the same stat cache entry
even though there are no threads actually attempting to perform the
FetchStatus.

And:

Fix prototypes

Optimize cm_GetNewSCache to reuse scache entries for deleted files
and entries not in the hashtable before allocating a new one.  This
keeps the entries in the hashtable to a minimum and thereby improving
performance for all other operations which must lookup a scache entry
by FID.

Add support for Sequential and Random Access flags



--- DELTA config for openafs-devel-1_5_x follows ---
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/cm_access.c 1.7.2.3 1.7.2.4
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/cm_buf.c 1.31.2.2 1.31.2.3
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/cm_buf.h 1.12.4.1 1.12.4.2
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/cm_callback.c 1.41.4.6 1.41.4.7
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/cm_daemon.c 1.16.4.4 1.16.4.5
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/cm_daemon.h 1.4 1.4.4.1
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/cm_dcache.c 1.30.2.2 1.30.2.3
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/cm_dcache.h 1.4 1.4.4.1
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/cm_ioctl.c 1.73.2.4 1.73.2.5
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/cm_scache.c 1.35.2.13 1.35.2.14
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/cm_scache.h 1.21.2.3 1.21.2.4
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/cm_vnodeops.c 1.69.2.11 1.69.2.12
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/rawops.c 1.2 1.2.4.1
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/smb.c 1.118.2.17 1.118.2.18
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/smb.h 1.41.2.8 1.41.2.9
DEVEL15-windows-multi-fix-20061002 openafs/src/WINNT/afsd/smb3.c 1.95.2.16 1.95.2.17