From 8ea3ce2aac9386a3130dce606f251d1f8efccbb6 Mon Sep 17 00:00:00 2001 From: Søren Schmidt Date: Wed, 14 Mar 2001 12:05:44 +0000 Subject: Refine the detach/attach code. Proberly fail outstanding bio requests on devices that are detached. This makes it possible to change between disk/cdrom/dvd/whathaveyou in a notebook, just by suspending it, changing the device in the bay (or what you model calls it), unsuspend and the ATA driver will figure out what disappeared and properly fail those, and attach any new devices found. --- sys/dev/ata/atapi-fd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/ata/atapi-fd.h') diff --git a/sys/dev/ata/atapi-fd.h b/sys/dev/ata/atapi-fd.h index 8c633d4605a62..84d566936bed3 100644 --- a/sys/dev/ata/atapi-fd.h +++ b/sys/dev/ata/atapi-fd.h @@ -74,7 +74,7 @@ struct afd_softc { struct atapi_softc *atp; /* controller structure */ int lun; /* logical device unit */ int transfersize; /* max size of each transfer */ - struct bio_queue_head bio_queue; /* queue of i/o requests */ + struct bio_queue_head queue; /* queue of i/o requests */ struct afd_header header; /* capabilities page info */ struct afd_cappage cap; /* capabilities page info */ struct disk disk; /* virtual drives */ -- cgit v1.3