Lock page field accesses in mincore().

Approved by:	re (blanket)
This commit is contained in:
alc 2002-11-28 08:01:39 +00:00
parent 28d6af6981
commit adf02aa8e3

View File

@ -883,6 +883,7 @@ mincore(td, uap)
pindex = OFF_TO_IDX(offset);
m = vm_page_lookup(current->object.vm_object,
pindex);
vm_page_lock_queues();
/*
* if the page is resident, then gather information about
* it.
@ -898,6 +899,7 @@ mincore(td, uap)
mincoreinfo |= MINCORE_REFERENCED_OTHER;
}
}
vm_page_unlock_queues();
}
/*