summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2010-08-25 00:47:53 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2010-08-25 00:47:53 +0000
commite3882d078799f9f0bbe4304cbeaefbaeec020c9a (patch)
tree53b7b12c6b28d401a4e05d65a8fbfe4b6419b283
parent022571935a9eb32548666c143a95ed20e356a556 (diff)
try giving all devices on ami access to all the ccbs. iopools will share
them out safely.
-rw-r--r--sys/dev/ic/ami.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index 0002797ad1b..97f432b8009 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.212 2010/07/01 03:20:38 matthew Exp $ */
+/* $OpenBSD: ami.c,v 1.213 2010/08/25 00:47:52 dlg Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -492,11 +492,7 @@ ami_attach(struct ami_softc *sc)
sc->sc_maxcmds -= AMI_MAXIOCTLCMDS + AMI_MAXPROCS *
AMI_MAXRAWCMDS * sc->sc_channels;
- if (sc->sc_nunits)
- sc->sc_link.openings =
- sc->sc_maxcmds / sc->sc_nunits;
- else
- sc->sc_link.openings = sc->sc_maxcmds;
+ sc->sc_link.openings = sc->sc_maxcmds;
}
ami_freemem(sc, am);
@@ -581,7 +577,7 @@ ami_attach(struct ami_softc *sc)
rsc->sc_softc = sc;
rsc->sc_channel = rsc - sc->sc_rawsoftcs;
- rsc->sc_link.openings = AMI_MAXRAWCMDS;
+ rsc->sc_link.openings = sc->sc_maxcmds;
rsc->sc_link.adapter_softc = rsc;
rsc->sc_link.adapter = &ami_raw_switch;
rsc->sc_proctarget = -1;