- Assert that the containing vm object is locked in
vm_page_set_validclean(). (This function reads and modifies the vm page's valid field, which is synchronized by the lock on the containing vm object.)
This commit is contained in:
parent
bbda0368ba
commit
0d42c05ff4
@ -1521,6 +1521,7 @@ vm_page_set_validclean(vm_page_t m, int base, int size)
|
||||
int endoff;
|
||||
|
||||
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
|
||||
VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED);
|
||||
if (size == 0) /* handle degenerate case */
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user