Bracket call to vm_page_flag_set with required Giant lock/unlock.

This commit is contained in:
Matt Jacob 2001-07-05 17:27:50 +00:00
parent 45c9a36af5
commit 48bd6f600e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79337

View File

@ -2887,8 +2887,11 @@ pmap_emulate_reference(struct proc *p, vm_offset_t v, int user, int write)
m->md.pv_flags |= PV_TABLE_REF;
faultoff = PG_FOR | PG_FOE;
if (user_addr)
if (user_addr) {
mtx_lock(&Giant);
vm_page_flag_set(m, PG_REFERENCED);
mtx_unlock(&Giant);
}
if (write) {
m->md.pv_flags |= PV_TABLE_MOD;