From owner-svn-src-all@FreeBSD.ORG Thu Jun 28 22:03:59 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A41AD106566C; Thu, 28 Jun 2012 22:03:59 +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 8E92E8FC0A; Thu, 28 Jun 2012 22:03:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5SM3xC9001237; Thu, 28 Jun 2012 22:03:59 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5SM3xjj001235; Thu, 28 Jun 2012 22:03:59 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <201206282203.q5SM3xjj001235@svn.freebsd.org> From: Alan Cox Date: Thu, 28 Jun 2012 22:03:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r237733 - head/sys/amd64/amd64 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jun 2012 22:03:59 -0000 Author: alc Date: Thu Jun 28 22:03:59 2012 New Revision: 237733 URL: http://svn.freebsd.org/changeset/base/237733 Log: Avoid some unnecessary PV list locking in pmap_enter(). Modified: head/sys/amd64/amd64/pmap.c Modified: head/sys/amd64/amd64/pmap.c ============================================================================== --- head/sys/amd64/amd64/pmap.c Thu Jun 28 21:24:56 2012 (r237732) +++ head/sys/amd64/amd64/pmap.c Thu Jun 28 22:03:59 2012 (r237733) @@ -3570,7 +3570,7 @@ validate: if ((newpte & PG_RW) == 0) invlva = TRUE; } - if ((origpte & PG_MANAGED) != 0) { + if ((om->aflags & PGA_WRITEABLE) != 0) { CHANGE_PV_LIST_LOCK_TO_VM_PAGE(&lock, om); if (TAILQ_EMPTY(&om->md.pv_list) && ((om->flags & PG_FICTITIOUS) != 0 ||