summaryrefslogtreecommitdiff
path: root/sys/scsi/sdvar.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-11-06 02:49:20 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-11-06 02:49:20 +0000
commit2499ae4d6f8e22c6fb9509842c2765109edf9276 (patch)
tree455d801574aa2ede337dedf9fe411f372a61382b /sys/scsi/sdvar.h
parentafa192bae9ff2b3a8a5bf48110b86f17ee9dcd21 (diff)
Fix SDF_DIRTY handling, eliminate useless SDF_FLUSHING. The sd_flush()
called from the last sdclose() on a device will now reset SDF_DIRTY after submitting the SYNCHRONIZE CACHE command. sddone() need not worry about SDF_DIRTY since it was never called for the SYNCHRONIZE CACHE command anyway. This eliminates a spurious SYNCHRONIZE CACHE command being issued for every sd device from sd_shutdown(). ok dlg@
Diffstat (limited to 'sys/scsi/sdvar.h')
-rw-r--r--sys/scsi/sdvar.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/scsi/sdvar.h b/sys/scsi/sdvar.h
index e525098edaa..d81c3058bea 100644
--- a/sys/scsi/sdvar.h
+++ b/sys/scsi/sdvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdvar.h,v 1.12 2007/09/15 19:22:18 bluhm Exp $ */
+/* $OpenBSD: sdvar.h,v 1.13 2007/11/06 02:49:19 krw Exp $ */
/* $NetBSD: sdvar.h,v 1.7 1998/08/17 00:49:03 mycroft Exp $ */
/*-
@@ -67,8 +67,7 @@ struct sd_softc {
#define SDF_LABELLING 0x08 /* writing label */
#define SDF_ANCIENT 0x10 /* disk is ancient; for minphys */
#define SDF_DIRTY 0x20 /* disk is dirty; needs cache flush */
-#define SDF_FLUSHING 0x40 /* flushing, for sddone() */
-#define SDF_DYING 0x80 /* dying, when deactivated */
+#define SDF_DYING 0x40 /* dying, when deactivated */
struct scsi_link *sc_link; /* contains our targ, lun, etc. */
struct disk_parms {
u_long heads; /* number of heads */