From owner-cvs-src-old@FreeBSD.ORG Sat Sep 5 08:03:48 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B9CE10656C2 for ; Sat, 5 Sep 2009 08:03:48 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4A3308FC0C for ; Sat, 5 Sep 2009 08:03:48 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n8583mAY032304 for ; Sat, 5 Sep 2009 08:03:48 GMT (envelope-from imp@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n8583ml5032303 for cvs-src-old@freebsd.org; Sat, 5 Sep 2009 08:03:48 GMT (envelope-from imp@repoman.freebsd.org) Message-Id: <200909050803.n8583ml5032303@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to imp@repoman.freebsd.org using -f From: Warner Losh Date: Sat, 5 Sep 2009 08:03:29 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/kern subr_bus.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Sep 2009 08:03:48 -0000 imp 2009-09-05 08:03:29 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/kern subr_bus.c Log: SVN rev 196855 on 2009-09-05 08:03:29Z by imp MFC r196529: Rather than having enabled/disabled, implement a max queue depth. While usually not an issue, this firewalls bugs in the code that may run us out of memory. Fix a memory exhaustion in the case where devctl was disabled, but the link was bouncing. The check to queue was in the wrong place. Implement a new sysctl hw.bus.devctl_queue to control the depth. Make compatibility hacks for hw.bus.devctl_disable to ease transition. Reviewed by: emaste@ Approved by: re@ (kib) MFC after: asap Revision Changes Path 1.225.2.4 +62 -13 src/sys/kern/subr_bus.c