From owner-svn-src-user@FreeBSD.ORG Tue Feb 17 06:56:38 2009 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 716B21065703; Tue, 17 Feb 2009 06:56:38 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 60B388FC25; Tue, 17 Feb 2009 06:56:38 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1H6ucDY006168; Tue, 17 Feb 2009 06:56:38 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1H6ucmf006167; Tue, 17 Feb 2009 06:56:38 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <200902170656.n1H6ucmf006167@svn.freebsd.org> From: Alan Cox Date: Tue, 17 Feb 2009 06:56:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188706 - user/alc/pagelock/sys/vm X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Feb 2009 06:56:38 -0000 Author: alc Date: Tue Feb 17 06:56:38 2009 New Revision: 188706 URL: http://svn.freebsd.org/changeset/base/188706 Log: Reduce the scope of the page queues lock. Modified: user/alc/pagelock/sys/vm/vm_mmap.c Modified: user/alc/pagelock/sys/vm/vm_mmap.c ============================================================================== --- user/alc/pagelock/sys/vm/vm_mmap.c Tue Feb 17 04:12:10 2009 (r188705) +++ user/alc/pagelock/sys/vm/vm_mmap.c Tue Feb 17 06:56:38 2009 (r188706) @@ -869,10 +869,10 @@ RestartScan: */ if (m != NULL && m->valid != 0) { mincoreinfo = MINCORE_INCORE; - vm_page_lock_queues(); if (m->dirty || pmap_is_modified(m)) mincoreinfo |= MINCORE_MODIFIED_OTHER; + vm_page_lock_queues(); if ((m->flags & PG_REFERENCED) || pmap_ts_referenced(m)) { vm_page_flag_set(m, PG_REFERENCED);