From acf7db1110aeacbc64a934e03893c93421de3c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Sun, 24 Feb 2002 12:28:24 +0000 Subject: [PATCH] Finish phk's previous removal of BIO_ORDERED, all code that depended on ATA_FLUSHCACHE_ON is now useless. --- sys/dev/ata/ata-disk.c | 4 ---- sys/dev/ata/ata-disk.h | 1 - 2 files changed, 5 deletions(-) diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index 6424f28ced52..e1c4ef62fda9 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -571,10 +571,6 @@ ad_interrupt(struct ad_request *request) struct ad_softc *adp = request->softc; int dma_stat = 0; -#ifdef ATA_FLUSHCACHE_ON - if (request->flags & ADR_F_FLUSHCACHE) - goto finish; -#endif /* finish DMA transfer */ if (request->flags & ADR_F_DMA_USED) dma_stat = ata_dmadone(adp->device->channel); diff --git a/sys/dev/ata/ata-disk.h b/sys/dev/ata/ata-disk.h index 9e0c4bf51ce5..0c175b9d150b 100644 --- a/sys/dev/ata/ata-disk.h +++ b/sys/dev/ata/ata-disk.h @@ -43,7 +43,6 @@ struct ad_request { #define ADR_F_DMA_USED 0x0004 #define ADR_F_QUEUED 0x0008 #define ADR_F_FORCE_PIO 0x0010 -#define ADR_F_FLUSHCACHE 0x0020 caddr_t data; /* pointer to data buf */ struct bio *bp; /* associated bio ptr */