summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-07-13 04:37:22 +0000
committeralc <alc@FreeBSD.org>2002-07-13 04:37:22 +0000
commit93d5e1650119acf0cb9135e7f42fbae9adba8cb1 (patch)
tree4060c17ca484cdeddcd4f9072a5445f513d15947
parent517fea87d55c4a29a7e37f1d279e5f8adc43e583 (diff)
downloadFreeBSD-src-93d5e1650119acf0cb9135e7f42fbae9adba8cb1.zip
FreeBSD-src-93d5e1650119acf0cb9135e7f42fbae9adba8cb1.tar.gz
Lock accesses to the page queues.
-rw-r--r--sys/kern/uipc_cow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/uipc_cow.c b/sys/kern/uipc_cow.c
index b470468..f909e78 100644
--- a/sys/kern/uipc_cow.c
+++ b/sys/kern/uipc_cow.c
@@ -148,7 +148,9 @@ socow_setup(struct mbuf *m0, struct uio *uio)
/*
* wire the page for I/O
*/
+ vm_page_lock_queues();
vm_page_wire(pp);
+ vm_page_unlock_queues();
/*
* prevent the process from exiting on us.
OpenPOWER on IntegriCloud