summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-05-04 15:55:41 +0000
committeralc <alc@FreeBSD.org>2010-05-04 15:55:41 +0000
commitc9aaa1e2a21afcea58a3bec5e8cffd6652fbaa25 (patch)
tree08dad4596fb8ef71c441ab83e48cd31b53d4c26f /sys/net
parentfbfe456f9697050cf749467e9b47e3aad49f09bb (diff)
downloadFreeBSD-src-c9aaa1e2a21afcea58a3bec5e8cffd6652fbaa25.zip
FreeBSD-src-c9aaa1e2a21afcea58a3bec5e8cffd6652fbaa25.tar.gz
Add page locking to the vm_page_cow* functions.
Push down the acquisition and release of the page queues lock into vm_page_wire(). Reviewed by: kib
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bpf_zerocopy.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/net/bpf_zerocopy.c b/sys/net/bpf_zerocopy.c
index 5ca6978..5629093 100644
--- a/sys/net/bpf_zerocopy.c
+++ b/sys/net/bpf_zerocopy.c
@@ -171,10 +171,8 @@ zbuf_sfbuf_get(struct vm_map *map, vm_offset_t uaddr)
if (pp == NULL)
return (NULL);
vm_page_lock(pp);
- vm_page_lock_queues();
vm_page_wire(pp);
vm_page_unhold(pp);
- vm_page_unlock_queues();
vm_page_unlock(pp);
sf = sf_buf_alloc(pp, SFB_NOWAIT);
if (sf == NULL) {
OpenPOWER on IntegriCloud