summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-disk.c
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2007-04-26 12:59:20 +0000
committerroberto <roberto@FreeBSD.org>2007-04-26 12:59:20 +0000
commitab279db877853300045a8cf5f8c953194a799ebc (patch)
tree90482b1c73e26b70b35ff2651b465fb3fb1a1e53 /sys/dev/ata/ata-disk.c
parentf3cd86d5486530fd7dae66b904fd1f4cbbc5773f (diff)
downloadFreeBSD-src-ab279db877853300045a8cf5f8c953194a799ebc.zip
FreeBSD-src-ab279db877853300045a8cf5f8c953194a799ebc.tar.gz
Use the same timeout parameters for BIO_FLUSH as with the other commands.
This workaround the problem in Parallels/VMWare where the emulated drivers are slower, especially with ATA_FLUSHCACHE. The problem appears much more frequently with ZFS which use it a lot more. Approved: sos, pjd
Diffstat (limited to 'sys/dev/ata/ata-disk.c')
-rw-r--r--sys/dev/ata/ata-disk.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c
index 8b52c99..a0009e5 100644
--- a/sys/dev/ata/ata-disk.c
+++ b/sys/dev/ata/ata-disk.c
@@ -277,8 +277,6 @@ ad_strategy(struct bio *bp)
request->u.ata.feature = 0;
request->bytecount = 0;
request->transfersize = 0;
- request->timeout = 1;
- request->retries = 0;
request->flags = ATA_R_CONTROL;
request->u.ata.command = ATA_FLUSHCACHE;
break;
OpenPOWER on IntegriCloud