diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-07-12 02:44:18 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-07-12 02:44:18 +0000 |
commit | 4e5dd980fd1238d635621b9bba7d99533aababd6 (patch) | |
tree | e0ffed0378479cfb15b4c00108ddec999e8d024d /sys/dev | |
parent | 7d0871902ea2c285d7ef3fda5e59917b9aef60fb (diff) |
extra wddone caused biodone panics occasionally
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ata/wd.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c index 05ecdbb0afe..bc3746f92c5 100644 --- a/sys/dev/ata/wd.c +++ b/sys/dev/ata/wd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wd.c,v 1.16 2001/04/30 21:19:45 csapuntz Exp $ */ +/* $OpenBSD: wd.c,v 1.17 2001/07/12 02:44:17 csapuntz Exp $ */ /* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */ /* @@ -572,7 +572,14 @@ __wdstart(wd, bp) case WDC_QUEUED: break; case WDC_COMPLETE: - wddone(wd); + /* + * This code is never executed because we never set + * the ATA_POLL flag above + */ +#if 0 + if (wd->sc_wdc_bio.flags & ATA_POLL) + wddone(wd); +#endif break; default: panic("__wdstart: bad return code from wdc_ata_bio()"); |