summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2011-04-03 23:17:13 +0000
committerdlg <dlg@openbsd.org>2011-04-03 23:17:13 +0000
commit932bbf23b7975417e2019e7888c704f50a5ff953 (patch)
tree0e75023f4d1254edf417b6648869cb7329f97b80
parentEnable the use of all the memory found on IP27 and IP30 kernels. Committed (diff)
downloadwireguard-openbsd-932bbf23b7975417e2019e7888c704f50a5ff953.tar.xz
wireguard-openbsd-932bbf23b7975417e2019e7888c704f50a5ff953.zip
pirofti made me look at wd(4) code, which made me sad.
increase the timeout on io from 10s to 45s. ata says we should wait 30, but i am cynical. this gives loongson disks enough time to wake up on resume.
-rw-r--r--sys/dev/ata/ata_wdc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata_wdc.c b/sys/dev/ata/ata_wdc.c
index f44acc279a5..5b6b7acf731 100644
--- a/sys/dev/ata/ata_wdc.c
+++ b/sys/dev/ata/ata_wdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ata_wdc.c,v 1.35 2010/11/06 16:53:15 kettenis Exp $ */
+/* $OpenBSD: ata_wdc.c,v 1.36 2011/04/03 23:17:13 dlg Exp $ */
/* $NetBSD: ata_wdc.c,v 1.21 1999/08/09 09:43:11 bouyer Exp $ */
/*
@@ -95,7 +95,7 @@ int wdcdebug_wd_mask = WDCDEBUG_WD_MASK;
#define WDCDEBUG_PRINT(args, level)
#endif
-#define ATA_DELAY 10000 /* 10s for a drive I/O */
+#define ATA_DELAY 45000 /* 45s for a drive I/O */
struct cfdriver wdc_cd = {
NULL, "wdc", DV_DULL