summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2010-07-07 10:12:13 +0000
committerdlg <dlg@openbsd.org>2010-07-07 10:12:13 +0000
commitbf337fa1694ed179f822ca43392b8710659db2fa (patch)
tree0622db1f3ddd03c2dc6edaf1c9948b2428c6f1bf
parentupdate manpage to reflect recent changes to m_copyback (diff)
downloadwireguard-openbsd-bf337fa1694ed179f822ca43392b8710659db2fa.tar.xz
wireguard-openbsd-bf337fa1694ed179f822ca43392b8710659db2fa.zip
set each disks openings to the maximum number the controller can handle.
iopools make sure resources arent overallocated, while scheduling them evenly between devices. tested by and ok jsg@
-rw-r--r--sys/dev/ic/ciss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ciss.c b/sys/dev/ic/ciss.c
index 530e106cfd1..db0d134426f 100644
--- a/sys/dev/ic/ciss.c
+++ b/sys/dev/ic/ciss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ciss.c,v 1.60 2010/07/02 08:12:17 matthew Exp $ */
+/* $OpenBSD: ciss.c,v 1.61 2010/07/07 10:12:13 dlg Exp $ */
/*
* Copyright (c) 2005,2006 Michael Shalayeff
@@ -364,7 +364,7 @@ ciss_attach(struct ciss_softc *sc)
}
sc->sc_link.adapter_softc = sc;
- sc->sc_link.openings = sc->maxcmd / (sc->maxunits? sc->maxunits : 1);
+ sc->sc_link.openings = sc->maxcmd;
sc->sc_link.adapter = &ciss_switch;
sc->sc_link.luns = 1;
sc->sc_link.adapter_target = sc->maxunits;