diff options
author | Alan Cox <alc@FreeBSD.org> | 2010-05-03 05:41:50 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2010-05-03 05:41:50 +0000 |
commit | 913814935a618cfb68301dc38aa47042fd1130c3 (patch) | |
tree | 63203bfa05c5420331af4dfe5225e91b49587bae /sys/net/bpf_zerocopy.c | |
parent | 464aa6d5fb8f405c8f5358d66a55f1e934239786 (diff) | |
download | src-913814935a618cfb68301dc38aa47042fd1130c3.tar.gz src-913814935a618cfb68301dc38aa47042fd1130c3.zip |
This is the first step in transitioning responsibility for synchronizing
access to the page's wire_count from the page queues lock to the page lock.
Submitted by: kmacy
Notes
Notes:
svn path=/head/; revision=207548
Diffstat (limited to 'sys/net/bpf_zerocopy.c')
-rw-r--r-- | sys/net/bpf_zerocopy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/bpf_zerocopy.c b/sys/net/bpf_zerocopy.c index 3cf4b8d9a51a..5ca69782ee30 100644 --- a/sys/net/bpf_zerocopy.c +++ b/sys/net/bpf_zerocopy.c @@ -112,11 +112,13 @@ static void zbuf_page_free(vm_page_t pp) { + vm_page_lock(pp); vm_page_lock_queues(); vm_page_unwire(pp, 0); if (pp->wire_count == 0 && pp->object == NULL) vm_page_free(pp); vm_page_unlock_queues(); + vm_page_unlock(pp); } /* |