From f12a20e2279dc9446a1b74217c9995e3d9fc099b Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 2 May 2012 18:20:45 -0400 Subject: [PATCH] Windows: cm_BkgFetch do not impose arbitrary timeout The afs redirector will queue extent requests for the entire file if it is being copied to local disk as long as there is enough page cache space to store it. If the file is 8GB and the bandwidth from the file server is 100K/second it may take a while to get to the end of the request queue. Do not arbitrarily time out the requests. Change-Id: I12d9358ee5de37fc78d68c8e07dd14ca5dda1832 Reviewed-on: http://gerrit.openafs.org/7320 Reviewed-by: Chas Williams - CONTRACTOR Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsrdr/user/RDRFunction.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/WINNT/afsrdr/user/RDRFunction.c b/src/WINNT/afsrdr/user/RDRFunction.c index 5d19f3aa91..0f8d99a4ae 100644 --- a/src/WINNT/afsrdr/user/RDRFunction.c +++ b/src/WINNT/afsrdr/user/RDRFunction.c @@ -2970,11 +2970,6 @@ RDR_BkgFetch(cm_scache_t *scp, afs_uint32 p1, afs_uint32 p2, afs_uint32 p3, afs_ FileId.Unique = scp->fid.unique; FileId.Hash = scp->fid.hash; - if ((GetTickCount() - reqp->startTime) / 1000 > HardDeadtimeout * 5) { - RDR_SetFileStatus( &scp->fid, &userp->authgroup, STATUS_IO_TIMEOUT); - return 0; - } - fetched.LowPart = 0; fetched.HighPart = 0; tblocksize = ConvertLongToLargeInteger(cm_data.buf_blockSize);