1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-04 12:52:15 +00:00

o Lock page queue accesses by vm_page_activate().

This commit is contained in:
Alan Cox 2002-08-10 23:53:59 +00:00
parent a9911f9a0f
commit 67ef391e00
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101655

View File

@ -749,7 +749,9 @@ vm_pageout_scan(int pass)
*/
} else if (((m->flags & PG_REFERENCED) == 0) &&
(actcount = pmap_ts_referenced(m))) {
vm_page_lock_queues();
vm_page_activate(m);
vm_page_unlock_queues();
m->act_count += (actcount + ACT_ADVANCE);
continue;
}
@ -763,7 +765,9 @@ vm_pageout_scan(int pass)
if ((m->flags & PG_REFERENCED) != 0) {
vm_page_flag_clear(m, PG_REFERENCED);
actcount = pmap_ts_referenced(m);
vm_page_lock_queues();
vm_page_activate(m);
vm_page_unlock_queues();
m->act_count += (actcount + ACT_ADVANCE + 1);
continue;
}