Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/thorpej_scsipi]: src/sys/dev/ic Hum, don't set max number of request per...



details:   https://anonhg.NetBSD.org/src/rev/3f1bb40fc710
branches:  thorpej_scsipi
changeset: 477470:3f1bb40fc710
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Fri Apr 06 07:27:58 2001 +0000

description:
Hum, don't set max number of request per periph larger than 256.

diffstat:

 sys/dev/ic/isp_netbsd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 69a5974ba821 -r 3f1bb40fc710 sys/dev/ic/isp_netbsd.c
--- a/sys/dev/ic/isp_netbsd.c   Fri Apr 06 07:08:21 2001 +0000
+++ b/sys/dev/ic/isp_netbsd.c   Fri Apr 06 07:27:58 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_netbsd.c,v 1.18.2.13 2001/03/27 15:31:58 bouyer Exp $ */
+/* $NetBSD: isp_netbsd.c,v 1.18.2.14 2001/04/06 07:27:58 bouyer Exp $ */
 /*
  * This driver, which is contained in NetBSD in the files:
  *
@@ -100,7 +100,8 @@
        isp->isp_osinfo._adapter.adapt_dev = &isp->isp_osinfo._dev;
        isp->isp_osinfo._adapter.adapt_nchannels = IS_DUALBUS(isp) ? 2 : 1;
        isp->isp_osinfo._adapter.adapt_openings = isp->isp_maxcmds; /* XXX per adapter or per channel ? */
-       isp->isp_osinfo._adapter.adapt_max_periph = isp->isp_maxcmds;
+       isp->isp_osinfo._adapter.adapt_max_periph =
+               (isp->isp_maxcmds > 256) ? 256 : isp->isp_maxcmds;
        isp->isp_osinfo._adapter.adapt_ioctl = ispioctl;
        isp->isp_osinfo._adapter.adapt_request = isprequest;
        isp->isp_osinfo._adapter.adapt_minphys = ispminphys;



Home | Main Index | Thread Index | Old Index