Lock page field accesses in mincore().
Approved by: re (blanket)
This commit is contained in:
parent
28d6af6981
commit
adf02aa8e3
@ -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