From: Jeffrey Altman Date: Wed, 2 May 2012 22:20:45 +0000 (-0400) Subject: Windows: cm_BkgFetch do not impose arbitrary timeout X-Git-Tag: upstream/1.8.0_pre1^2~2448 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f12a20e2279dc9446a1b74217c9995e3d9fc099b;p=packages%2Fo%2Fopenafs.git 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 --- diff --git a/src/WINNT/afsrdr/user/RDRFunction.c b/src/WINNT/afsrdr/user/RDRFunction.c index 5d19f3aa9..0f8d99a4a 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);