Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2012 22:03:59 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r237733 - head/sys/amd64/amd64
Message-ID:  <201206282203.q5SM3xjj001235@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 ||



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206282203.q5SM3xjj001235>