mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Lock accesses to the page queues.
This commit is contained in:
parent
5c85966098
commit
a4e80b6b64
1 changed files with 4 additions and 0 deletions
|
|
@ -268,7 +268,9 @@ proc_rwmem(struct proc *p, struct uio *uio)
|
|||
/*
|
||||
* Wire the page into memory
|
||||
*/
|
||||
vm_page_lock_queues();
|
||||
vm_page_wire(m);
|
||||
vm_page_unlock_queues();
|
||||
|
||||
/*
|
||||
* We're done with tmap now.
|
||||
|
|
@ -290,7 +292,9 @@ proc_rwmem(struct proc *p, struct uio *uio)
|
|||
/*
|
||||
* release the page and the object
|
||||
*/
|
||||
vm_page_lock_queues();
|
||||
vm_page_unwire(m, 1);
|
||||
vm_page_unlock_queues();
|
||||
vm_object_deallocate(object);
|
||||
|
||||
object = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue