From owner-cvs-all Wed Mar 13 15:48:25 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0DD0537B435; Wed, 13 Mar 2002 15:48:11 -0800 (PST) Received: (from green@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2DNmAE12640; Wed, 13 Mar 2002 15:48:10 -0800 (PST) (envelope-from green) Message-Id: <200203132348.g2DNmAE12640@freefall.freebsd.org> From: Brian Feldman Date: Wed, 13 Mar 2002 15:48:08 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_mtxpool.c src/sys/sys kernel.h src/sys/vm vm_fault.c vm_glue.c vm_map.c vm_map.h vm_pageout.c vm_zone.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG green 2002/03/13 15:48:08 PST Modified files: sys/kern kern_mtxpool.c sys/sys kernel.h sys/vm vm_fault.c vm_glue.c vm_map.c vm_map.h vm_pageout.c vm_zone.c Log: Rename SI_SUB_MUTEX to SI_SUB_MTX_POOL to make the name at all accurate. While doing this, move it earlier in the sysinit boot process so that the VM system can use it. After that, the system is now able to use sx locks instead of lockmgr locks in the VM system. To accomplish this, some of the more questionable uses of the locks (such as testing whether they are owned or not, as well as allowing shared+exclusive recursion) are removed, and simpler logic throughout is used so locks should also be easier to understand. This has been tested on my laptop for months, and has not shown any problems on SMP systems, either, so appears quite safe. One more user of lockmgr down, many more to go :) Revision Changes Path 1.4 +1 -1 src/sys/kern/kern_mtxpool.c 1.100 +1 -1 src/sys/sys/kernel.h 1.130 +7 -5 src/sys/vm/vm_fault.c 1.128 +1 -3 src/sys/vm/vm_glue.c 1.215 +60 -58 src/sys/vm/vm_map.c 1.71 +20 -10 src/sys/vm/vm_map.h 1.191 +1 -2 src/sys/vm/vm_pageout.c 1.52 +6 -6 src/sys/vm/vm_zone.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message