Lock page field accesses in mincore().

Approved by:	re (blanket)
This commit is contained in:
Alan Cox 2002-11-28 08:01:39 +00:00
parent 69e979c3c4
commit e80b7b691e

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();
}
/*