diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-10-13 17:55:01 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-10-13 17:55:01 +0000 |
commit | 7a50d3380c18c8f65a6d0acadee1314d3154d639 (patch) | |
tree | 9190bcf6b72d49b45d3ce03fec710831cd8d8250 /sys/scsi | |
parent | 87d4f5ce5b4c79913806d5627bfd2d12031570a8 (diff) |
Matthew Jacob <mjacob@feral.com>:
Mickey did the right thing, but we'll have to figure out what that broke as
well.
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/sd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 7dd48655590..3bce2ac2ec5 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.45 2000/09/21 17:57:19 mickey Exp $ */ +/* $OpenBSD: sd.c,v 1.46 2000/10/13 17:55:00 mickey Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -82,6 +82,10 @@ #include <sys/vnode.h> +#ifndef SDOUTSTANDING +#define SDOUTSTANDING 4 +#endif + #define SDUNIT(dev) DISKUNIT(dev) #define SDMINOR(unit, part) DISKMINOR(unit, part) #define SDPART(dev) DISKPART(dev) @@ -180,6 +184,8 @@ sdattach(parent, self, aux) sd->type = (sa->sa_inqbuf->device & SID_TYPE); sc_link->device = &sd_switch; sc_link->device_softc = sd; + if (sc_link->openings > SDOUTSTANDING) + sc_link->openings = SDOUTSTANDING; /* * Initialize and attach the disk structure. |