Avoid some unnecessary PV list locking in pmap_enter().
This commit is contained in:
parent
e36042794f
commit
6c67613030
@ -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 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user