From owner-cvs-all@FreeBSD.ORG Tue Mar 9 20:44:43 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 9C71816A4CE; Tue, 9 Mar 2004 20:44:43 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 945B743D1F; Tue, 9 Mar 2004 20:44:43 -0800 (PST) (envelope-from alc@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2A4ihGe024140; Tue, 9 Mar 2004 20:44:43 -0800 (PST) (envelope-from alc@repoman.freebsd.org) Received: (from alc@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2A4ihp6024139; Tue, 9 Mar 2004 20:44:43 -0800 (PST) (envelope-from alc) Message-Id: <200403100444.i2A4ihp6024139@repoman.freebsd.org> From: Alan Cox Date: Tue, 9 Mar 2004 20:44:43 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/i386/i386 vm_machdep.c src/sys/vm uma_core.c vm_fault.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: Wed, 10 Mar 2004 04:44:43 -0000 alc 2004/03/09 20:44:43 PST FreeBSD src repository Modified files: sys/i386/i386 vm_machdep.c sys/vm uma_core.c vm_fault.c Log: - Make the acquisition of Giant in vm_fault_unwire() conditional on the pmap. For the kernel pmap, Giant is not required. In general, for other pmaps, Giant is required by i386's pmap_pte() implementation. Specifically, the use of PMAP2/PADDR2 is synchronized by Giant. Note: In principle, updates to the kernel pmap's wired count could be lost without Giant. However, in practice, we never use the kernel pmap's wired count. This will be resolved when pmap locking appears. - With the above change, cpu_thread_clean() and uma_large_free() need not acquire Giant. (The first case is simply the revival of i386/i386/vm_machdep.c's revision 1.226 by peter.) Revision Changes Path 1.230 +0 -2 src/sys/i386/i386/vm_machdep.c 1.93 +1 -11 src/sys/vm/uma_core.c 1.186 +4 -2 src/sys/vm/vm_fault.c