Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Oct 2004 10:52:37 GMT
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 63279 for review
Message-ID:  <200410171052.i9HAqbhF085079@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=63279

Change 63279 by peter@peter_daintree on 2004/10/17 10:51:44

	argh. increase disk command timeout from 5 to 30 seconds.
	On my dying maxtor "sata" drive, it takes 10-20 seconds to
	read some sectors.  Meanwhile, the read and subsequent identify
	commands timeout and the kernel decides the drive is gone. (!).
	It wasn't gone, just slow.  Increasing the timeout means that we
	do successfully read.

Affected files ...

.. //depot/projects/hammer/sys/dev/ata/ata-disk.c#26 edit

Differences ...

==== //depot/projects/hammer/sys/dev/ata/ata-disk.c#26 (text+ko) ====

@@ -252,7 +252,7 @@
     request->device = atadev;
     request->bio = bp;
     request->callback = ad_done;
-    request->timeout = 5;
+    request->timeout = 30;
     request->retries = 2;
     request->data = bp->bio_data;
     request->bytecount = bp->bio_bcount;


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410171052.i9HAqbhF085079>