From owner-cvs-src@FreeBSD.ORG Sun Oct 24 06:15:37 2004 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 7CDF516A4CE; Sun, 24 Oct 2004 06:15:37 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59FE643D49; Sun, 24 Oct 2004 06:15:37 +0000 (GMT) (envelope-from alc@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 i9O6FbG6069346; Sun, 24 Oct 2004 06:15:37 GMT (envelope-from alc@repoman.freebsd.org) Received: (from alc@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i9O6FbSb069345; Sun, 24 Oct 2004 06:15:37 GMT (envelope-from alc) Message-Id: <200410240615.i9O6FbSb069345@repoman.freebsd.org> From: Alan Cox Date: Sun, 24 Oct 2004 06:15:37 +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/vm vm_page.c vm_page.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, 24 Oct 2004 06:15:37 -0000 alc 2004-10-24 06:15:37 UTC FreeBSD src repository Modified files: sys/vm vm_page.c vm_page.h Log: Introduce VM_ALLOC_NOBUSY, an option to vm_page_alloc() and vm_page_grab() that indicates that the caller does not want a page with its busy flag set. In many places, the global page queues lock is acquired and released just to clear the busy flag on a just allocated page. Both the allocation of the page and the clearing of the busy flag occur while the containing vm object is locked. So, the busy flag might as well never be set. Revision Changes Path 1.294 +3 -2 src/sys/vm/vm_page.c 1.134 +1 -0 src/sys/vm/vm_page.h