diff options
author | sos <sos@FreeBSD.org> | 2000-03-12 13:56:05 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2000-03-12 13:56:05 +0000 |
commit | faa77986fd8f89097b47ce4e976e9a5f451f045f (patch) | |
tree | c07b60a16cf943c85b563d5f82122b609e3797de | |
parent | de04d246e6ae91c01ecc872839fb5759855c8d8d (diff) | |
download | FreeBSD-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.c | 3 |
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); } |