Increase the timeout to be 3*hz. This recalibrates the timeout so that

it has the same value on all platforms.  Previously it was just under
3 seconds on x86 (typically hz<=128) and just under 1/3 of a second on
alpha (typically hz>=1024).  This covers up a race between ad_interrupt()
and ad_timeout() which is being looked into.

reviewd by: sos
This commit is contained in:
Andrew Gallatin 1999-10-18 17:55:38 +00:00
parent 8342096f29
commit ca4e37e1cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52386

View File

@ -417,7 +417,7 @@ ad_transfer(struct ad_request *request)
if (request->donecount == 0) {
/* start timeout for this transfer */
request->timeout_handle = timeout((timeout_t*)ad_timeout, request, 300);
request->timeout_handle = timeout((timeout_t*)ad_timeout, request, 3*hz);
/* setup transfer parameters */
count = howmany(request->bytecount, DEV_BSIZE);