mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Lock the page around hold_count access.
Reviewed by: alc
This commit is contained in:
parent
139a0de7f1
commit
a0b8e597e5
1 changed files with 2 additions and 0 deletions
|
|
@ -2108,6 +2108,7 @@ retry_space:
|
|||
mbstat.sf_iocnt++;
|
||||
}
|
||||
if (error) {
|
||||
vm_page_lock(pg);
|
||||
vm_page_lock_queues();
|
||||
vm_page_unwire(pg, 0);
|
||||
/*
|
||||
|
|
@ -2121,6 +2122,7 @@ retry_space:
|
|||
vm_page_free(pg);
|
||||
}
|
||||
vm_page_unlock_queues();
|
||||
vm_page_unlock(pg);
|
||||
VM_OBJECT_UNLOCK(obj);
|
||||
if (error == EAGAIN)
|
||||
error = 0; /* not a real error */
|
||||
|
|
|
|||
Loading…
Reference in a new issue