o Lock page queue accesses by vm_page_activate() and vm_page_deactivate().

This commit is contained in:
Alan Cox 2002-07-27 05:08:49 +00:00
parent 9d52288860
commit eb13174a6b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100737

View File

@ -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(