diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2010-07-06 16:16:49 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2010-07-06 16:16:49 +0000 |
commit | 32b3b5fc0f1f7dc7bdb634152c2f55480fbda128 (patch) | |
tree | 4d1e5a35733b53737dcf06773836c73109411fbc /sys/scsi | |
parent | 70783a2c0863fcbbdc8469915907227954f4f427 (diff) |
Enable FIFO IO for sd devices. This time committed against the actual tree.
Tested by lots of people during c2k10
ok phessler krw thib
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/sd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index aeb46e264d3..db9df6f0dee 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.202 2010/07/03 01:40:12 kettenis Exp $ */ +/* $OpenBSD: sd.c,v 1.203 2010/07/06 16:16:48 marco Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -175,7 +175,11 @@ sdattach(struct device *parent, struct device *self, void *aux) */ sc->sc_dk.dk_driver = &sddkdriver; sc->sc_dk.dk_name = sc->sc_dev.dv_xname; - sc->sc_bufq = bufq_init(BUFQ_DEFAULT); + + if (SCSISPC(sc_link->inqdata.version) >= 2) + sc->sc_bufq = bufq_init(BUFQ_FIFO); + else + sc->sc_bufq = bufq_init(BUFQ_DEFAULT); if ((sc_link->flags & SDEV_ATAPI) && (sc_link->flags & SDEV_REMOVABLE)) sc_link->quirks |= SDEV_NOSYNCCACHE; |