mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
- Hold the vm object's lock around calls to vm_page_set_validclean().
This commit is contained in:
parent
634862b329
commit
2bf43e4374
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121264
@ -494,13 +494,17 @@ vnode_pager_input_smlfs(object, m)
|
||||
if (error)
|
||||
break;
|
||||
|
||||
VM_OBJECT_LOCK(object);
|
||||
vm_page_lock_queues();
|
||||
vm_page_set_validclean(m, (i * bsize) & PAGE_MASK, bsize);
|
||||
vm_page_unlock_queues();
|
||||
VM_OBJECT_UNLOCK(object);
|
||||
} else {
|
||||
VM_OBJECT_LOCK(object);
|
||||
vm_page_lock_queues();
|
||||
vm_page_set_validclean(m, (i * bsize) & PAGE_MASK, bsize);
|
||||
vm_page_unlock_queues();
|
||||
VM_OBJECT_UNLOCK(object);
|
||||
bzero((caddr_t) kva + i * bsize, bsize);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user