Assert that the containing vm object is locked in vm_page_flash().
This commit is contained in:
parent
7a008b17d1
commit
50d63268a9
@ -312,6 +312,8 @@ vm_page_busy(vm_page_t m)
|
||||
void
|
||||
vm_page_flash(vm_page_t m)
|
||||
{
|
||||
|
||||
VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED);
|
||||
if (m->flags & PG_WANTED) {
|
||||
vm_page_flag_clear(m, PG_WANTED);
|
||||
wakeup(m);
|
||||
|
Loading…
Reference in New Issue
Block a user