mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Assert that the containing vm object is locked in vm_page_flash().
This commit is contained in:
parent
2ee4b70bec
commit
63bb7041cc
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue