summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2000-03-12 13:56:05 +0000
committersos <sos@FreeBSD.org>2000-03-12 13:56:05 +0000
commitfaa77986fd8f89097b47ce4e976e9a5f451f045f (patch)
treec07b60a16cf943c85b563d5f82122b609e3797de
parentde04d246e6ae91c01ecc872839fb5759855c8d8d (diff)
downloadFreeBSD-src-faa77986fd8f89097b47ce4e976e9a5f451f045f.zip
FreeBSD-src-faa77986fd8f89097b47ce4e976e9a5f451f045f.tar.gz
Dont call ad_start unless the controller is idle.
This effectively nullified the usefullness of disksort().
-rw-r--r--sys/dev/ata/ata-disk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c
index 46915a7..2f75d54 100644
--- a/sys/dev/ata/ata-disk.c
+++ b/sys/dev/ata/ata-disk.c
@@ -252,7 +252,8 @@ adstrategy(struct buf *bp)
s = splbio();
bufqdisksort(&adp->queue, bp);
- ad_start(adp);
+ if (adp->controller->active == ATA_IDLE)
+ ad_start(adp);
splx(s);
}
OpenPOWER on IntegriCloud