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 <chas@cmf.nrl.navy.mil>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
This commit is contained in:
Jeffrey Altman 2012-05-02 18:20:45 -04:00 committed by Jeffrey Altman
parent b12a038b48
commit f12a20e227

View File

@ -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.Unique = scp->fid.unique;
FileId.Hash = scp->fid.hash; 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.LowPart = 0;
fetched.HighPart = 0; fetched.HighPart = 0;
tblocksize = ConvertLongToLargeInteger(cm_data.buf_blockSize); tblocksize = ConvertLongToLargeInteger(cm_data.buf_blockSize);