summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_contig.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-05-03 07:08:16 +0000
committeralc <alc@FreeBSD.org>2010-05-03 07:08:16 +0000
commit34bfab021b5442c5389d345f46ff6ff111e69da8 (patch)
treea46a2ac0fa4cf363968712adc80322169a20f543 /sys/vm/vm_contig.c
parentdda80c9587fba3b3c842e555ef7d08ed0949a600 (diff)
downloadFreeBSD-src-34bfab021b5442c5389d345f46ff6ff111e69da8.zip
FreeBSD-src-34bfab021b5442c5389d345f46ff6ff111e69da8.tar.gz
The pages allocated by kmem_alloc_attr() and kmem_malloc() are unmanaged.
Consequently, neither the page lock nor the page queues lock is needed to unwire and free them.
Diffstat (limited to 'sys/vm/vm_contig.c')
-rw-r--r--sys/vm/vm_contig.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/vm/vm_contig.c b/sys/vm/vm_contig.c
index e6a9b78..c1c8618 100644
--- a/sys/vm/vm_contig.c
+++ b/sys/vm/vm_contig.c
@@ -268,11 +268,7 @@ retry:
i -= PAGE_SIZE;
m = vm_page_lookup(object, OFF_TO_IDX(offset +
i));
- vm_page_lock(m);
- vm_page_lock_queues();
vm_page_free(m);
- vm_page_unlock_queues();
- vm_page_unlock(m);
}
VM_OBJECT_UNLOCK(object);
vm_map_delete(map, addr, addr + size);
OpenPOWER on IntegriCloud