summaryrefslogtreecommitdiff
path: root/sys/dev/ata/wd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-03-27 23:32:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-03-27 23:32:56 +0000
commitdd4c8c0d2b7d16573e9a0e049cc28e05fd78e7f5 (patch)
treedafbe44db6db59b14cff264b728957411bc63203 /sys/dev/ata/wd.c
parenta485462e6fac1d321ded7e6dab26d7cd116b56ff (diff)
OK, I understand why jsg wanted the disk_unbusy() in wdretry(), and he
was right. There is another path that ends up avoiding the disk_unbusy call I inserted.... tested by robert too
Diffstat (limited to 'sys/dev/ata/wd.c')
-rw-r--r--sys/dev/ata/wd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c
index c19d27f4177..a903463c0b3 100644
--- a/sys/dev/ata/wd.c
+++ b/sys/dev/ata/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.54 2007/03/25 18:05:49 deraadt Exp $ */
+/* $OpenBSD: wd.c,v 1.55 2007/03/27 23:32:55 deraadt Exp $ */
/* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */
/*
@@ -609,7 +609,6 @@ retry:
wd->sc_wdc_bio.blkdone, wd->sc_dk.dk_label);
if (wd->retries++ < WDIORETRIES) {
printf(", retrying\n");
- disk_unbusy(&wd->sc_dk, 0, (bp->b_flags & B_READ));
timeout_add(&wd->sc_restart_timeout, RECOVERYTIME);
return;
}
@@ -639,6 +638,7 @@ wdrestart(void *v)
DEBUG_XFERS);
s = splbio();
+ disk_unbusy(&wd->sc_dk, 0, (bp->b_flags & B_READ));
__wdstart(v, bp);
splx(s);
}