From owner-cvs-src@FreeBSD.ORG Sat Jul 12 18:22:22 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 248CB37B401; Sat, 12 Jul 2003 18:22:22 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD5CF43FA3; Sat, 12 Jul 2003 18:22:21 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6D1ML0U098191; Sat, 12 Jul 2003 18:22:21 -0700 (PDT) (envelope-from truckman@repoman.freebsd.org) Received: (from truckman@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6D1MLIB098190; Sat, 12 Jul 2003 18:22:21 -0700 (PDT) Message-Id: <200307130122.h6D1MLIB098190@repoman.freebsd.org> From: Don Lewis Date: Sat, 12 Jul 2003 18:22:21 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_descrip.c kern_lock.c kern_mtxpool.c kern_prot.c kern_resource.c kern_sx.c src/sys/sys kernel.h mutex.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 01:22:22 -0000 truckman 2003/07/12 18:22:21 PDT FreeBSD src repository Modified files: sys/kern kern_descrip.c kern_lock.c kern_mtxpool.c kern_prot.c kern_resource.c kern_sx.c sys/sys kernel.h mutex.h Log: Extend the mutex pool implementation to permit the creation and use of multiple mutex pools with different options and sizes. Mutex pools can be created with either the default sleep mutexes or with spin mutexes. A dynamically created mutex pool can now be destroyed if it is no longer needed. Create two pools by default, one that matches the existing pool that uses the MTX_NOWITNESS option that should be used for building higher level locks, and a new pool with witness checking enabled. Modify the users of the existing mutex pool to use the appropriate pool in the new implementation. Reviewed by: jhb Revision Changes Path 1.208 +1 -1 src/sys/kern/kern_descrip.c 1.69 +2 -2 src/sys/kern/kern_lock.c 1.8 +131 -52 src/sys/kern/kern_mtxpool.c 1.175 +1 -1 src/sys/kern/kern_prot.c 1.127 +1 -1 src/sys/kern/kern_resource.c 1.20 +1 -1 src/sys/kern/kern_sx.c 1.111 +2 -1 src/sys/sys/kernel.h 1.62 +23 -5 src/sys/sys/mutex.h