o Lock page queue accesses by vm_page_activate() and vm_page_deactivate().
This commit is contained in:
parent
9d52288860
commit
eb13174a6b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100737
@ -760,8 +760,8 @@ spec_getpages(ap)
|
||||
}
|
||||
pmap_qremove(kva, pcount);
|
||||
|
||||
|
||||
gotreqpage = 0;
|
||||
vm_page_lock_queues();
|
||||
for (i = 0, toff = 0; i < pcount; i++, toff = nextoff) {
|
||||
nextoff = toff + PAGE_SIZE;
|
||||
m = ap->a_m[i];
|
||||
@ -812,6 +812,7 @@ spec_getpages(ap)
|
||||
vm_page_zero_invalid(m, FALSE);
|
||||
}
|
||||
}
|
||||
vm_page_unlock_queues();
|
||||
if (!gotreqpage) {
|
||||
m = ap->a_m[ap->a_reqpage];
|
||||
printf(
|
||||
|
Loading…
Reference in New Issue
Block a user