diff options
Diffstat (limited to 'sys/dev/ata/atapi-tape.c')
-rw-r--r-- | sys/dev/ata/atapi-tape.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c index 31bf97f..e21a0e6 100644 --- a/sys/dev/ata/atapi-tape.c +++ b/sys/dev/ata/atapi-tape.c @@ -145,12 +145,8 @@ void astdetach(struct ata_device *atadev) { struct ast_softc *stp = atadev->driver; - struct bio *bp; - while ((bp = bioq_first(&stp->queue))) { - bioq_remove(&stp->queue, bp); - biofinish(bp, NULL, ENXIO); - } + bioq_flush(&stp->queue, NULL, ENXIO); destroy_dev(stp->dev1); destroy_dev(stp->dev2); devstat_remove_entry(stp->stats); |