Lock page field accesses in mincore().
Approved by: re (blanket)
This commit is contained in:
parent
69e979c3c4
commit
e80b7b691e
@ -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();
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user