From ca4e37e1cf105e336407dc9ce9972251e77aa8ba Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Mon, 18 Oct 1999 17:55:38 +0000 Subject: [PATCH] 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 --- sys/dev/ata/ata-disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index 333a5d1335e..25a997ef526 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -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);