mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Bracket call to vm_page_flag_set with required Giant lock/unlock.
This commit is contained in:
parent
45c9a36af5
commit
48bd6f600e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79337
@ -2887,8 +2887,11 @@ pmap_emulate_reference(struct proc *p, vm_offset_t v, int user, int write)
|
||||
m->md.pv_flags |= PV_TABLE_REF;
|
||||
faultoff = PG_FOR | PG_FOE;
|
||||
|
||||
if (user_addr)
|
||||
if (user_addr) {
|
||||
mtx_lock(&Giant);
|
||||
vm_page_flag_set(m, PG_REFERENCED);
|
||||
mtx_unlock(&Giant);
|
||||
}
|
||||
|
||||
if (write) {
|
||||
m->md.pv_flags |= PV_TABLE_MOD;
|
||||
|
Loading…
Reference in New Issue
Block a user