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 ||
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to