Lock accesses to the page queues.

This commit is contained in:
Alan Cox 2002-07-12 17:21:22 +00:00
parent 5c85966098
commit a4e80b6b64

View File

@ -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;