Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ata ATA-6 and ACS-2 drafts both say the flush cache ...
details: https://anonhg.NetBSD.org/src/rev/fbab6b79be5c
branches: trunk
changeset: 780405:fbab6b79be5c
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Jul 22 18:37:31 2012 +0000
description:
ATA-6 and ACS-2 drafts both say the flush cache commands may take longer than
30 seconds to complete. For now assume 5 minutes will always be enough.
diffstat:
sys/dev/ata/wd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r afc7d45a7627 -r fbab6b79be5c sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c Sun Jul 22 18:21:17 2012 +0000
+++ b/sys/dev/ata/wd.c Sun Jul 22 18:37:31 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wd.c,v 1.395 2012/07/15 10:55:29 dsl Exp $ */
+/* $NetBSD: wd.c,v 1.396 2012/07/22 18:37:31 jakllsch Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.395 2012/07/15 10:55:29 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.396 2012/07/22 18:37:31 jakllsch Exp $");
#include "opt_ata.h"
@@ -1913,7 +1913,7 @@
ata_c.r_st_bmask = WDCS_DRDY;
ata_c.r_st_pmask = WDCS_DRDY;
ata_c.flags = flags;
- ata_c.timeout = 30000; /* 30s timeout */
+ ata_c.timeout = 300000; /* 5m timeout */
if (wd->atabus->ata_exec_command(wd->drvp, &ata_c) != ATACMD_COMPLETE) {
aprint_error_dev(wd->sc_dev,
"flush cache command didn't complete\n");
Home |
Main Index |
Thread Index |
Old Index