From owner-cvs-all@FreeBSD.ORG Mon Aug 2 00:18:36 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B44FD16A4CF; Mon, 2 Aug 2004 00:18:36 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EEED43D1D; Mon, 2 Aug 2004 00:18:36 +0000 (GMT) (envelope-from green@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i720IaXF093772; Mon, 2 Aug 2004 00:18:36 GMT (envelope-from green@repoman.freebsd.org) Received: (from green@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i720Iato093771; Mon, 2 Aug 2004 00:18:36 GMT (envelope-from green) Message-Id: <200408020018.i720Iato093771@repoman.freebsd.org> From: Brian Feldman Date: Mon, 2 Aug 2004 00:18:36 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/en midway.c src/sys/kern kern_mbuf.c kern_proc.c kern_thread.c sys_pipe.c src/sys/security/mac mac_label.c src/sys/sys mbuf.h src/sys/vm uma.h uma_core.c uma_dbg.c uma_dbg.h vm_map.c vm_object.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2004 00:18:36 -0000 green 2004-08-02 00:18:36 UTC FreeBSD src repository Modified files: sys/dev/en midway.c sys/kern kern_mbuf.c kern_proc.c kern_thread.c sys_pipe.c sys/security/mac mac_label.c sys/sys mbuf.h sys/vm uma.h uma_core.c uma_dbg.c uma_dbg.h vm_map.c vm_object.c Log: * Add a "how" argument to uma_zone constructors and initialization functions so that they know whether the allocation is supposed to be able to sleep or not. * Allow uma_zone constructors and initialation functions to return either success or error. Almost all of the ones in the tree currently return success unconditionally, but mbuf is a notable exception: the packet zone constructor wants to be able to fail if it cannot suballocate an mbuf cluster, and the mbuf allocators want to be able to fail in general in a MAC kernel if the MAC mbuf initializer fails. This fixes the panics people are seeing when they run out of memory for mbuf clusters. * Allow debug.nosleepwithlocks on WITNESS to be disabled, without changing the default. Both bmilekic and jeff have reviewed the changes made to make failable zone allocations work. Revision Changes Path 1.63 +13 -22 src/sys/dev/en/midway.c 1.3 +32 -35 src/sys/kern/kern_mbuf.c 1.213 +8 -6 src/sys/kern/kern_proc.c 1.190 +12 -8 src/sys/kern/kern_thread.c 1.174 +8 -6 src/sys/kern/sys_pipe.c 1.2 +4 -3 src/sys/security/mac/mac_label.c 1.156 +0 -5 src/sys/sys/mbuf.h 1.19 +8 -4 src/sys/vm/uma.h 1.104 +124 -50 src/sys/vm/uma_core.c 1.15 +18 -18 src/sys/vm/uma_dbg.c 1.5 +4 -4 src/sys/vm/uma_dbg.h 1.350 +9 -7 src/sys/vm/vm_map.c 1.331 +4 -3 src/sys/vm/vm_object.c