mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Lock page field accesses in mincore().
Approved by: re (blanket)
This commit is contained in:
parent
69e979c3c4
commit
e80b7b691e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107370
@ -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