summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-queue.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-02-17 21:17:21 +0000
committermav <mav@FreeBSD.org>2009-02-17 21:17:21 +0000
commit9d001280ae826d121e318d196a401797e5a29757 (patch)
tree9b431a7791630ac1f99638d0913a950f260bc6cf /sys/dev/ata/ata-queue.c
parent77887f8543527206b54611a66359fb71ddac50fb (diff)
downloadFreeBSD-src-9d001280ae826d121e318d196a401797e5a29757.zip
FreeBSD-src-9d001280ae826d121e318d196a401797e5a29757.tar.gz
ata_interrupt() does not need to return anything. It is not it's business
to report request completion, expecially when it is not reliable.
Diffstat (limited to 'sys/dev/ata/ata-queue.c')
-rw-r--r--sys/dev/ata/ata-queue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-queue.c b/sys/dev/ata/ata-queue.c
index 9a0d0a8..439f12a 100644
--- a/sys/dev/ata/ata-queue.c
+++ b/sys/dev/ata/ata-queue.c
@@ -214,8 +214,10 @@ ata_start(device_t dev)
if (dumping) {
mtx_unlock(&ch->state_mtx);
mtx_unlock(&ch->queue_mtx);
- while (!ata_interrupt(ch) && ch->running)
+ while (ch->running) {
+ ata_interrupt(ch);
DELAY(10);
+ }
return;
}
}
OpenPOWER on IntegriCloud