summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-05-21 20:38:19 +0000
committerattilio <attilio@FreeBSD.org>2013-05-21 20:38:19 +0000
commitfdf82ef9cfb84888e76e303fe6c9ee30fbc21d1e (patch)
tree24458ef5e2585280bf95280f83f977fde60faeaa /sys/vm/vm_object.h
parent05bd8275f3829e7d1f55e8faabd64095eab3c291 (diff)
downloadFreeBSD-src-fdf82ef9cfb84888e76e303fe6c9ee30fbc21d1e.zip
FreeBSD-src-fdf82ef9cfb84888e76e303fe6c9ee30fbc21d1e.tar.gz
o Relax locking assertions for vm_page_find_least()
o Relax locking assertions for pmap_enter_object() and add them also to architectures that currently don't have any o Introduce VM_OBJECT_LOCK_DOWNGRADE() which is basically a downgrade operation on the per-object rwlock o Use all the mechanisms above to make vm_map_pmap_enter() to work mostl of the times only with readlocks. Sponsored by: EMC / Isilon storage division Reviewed by: alc
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index cf54663..05ab73d 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -223,6 +223,8 @@ extern struct vm_object kmem_object_store;
rw_assert(&(object)->lock, RA_RLOCKED)
#define VM_OBJECT_ASSERT_WLOCKED(object) \
rw_assert(&(object)->lock, RA_WLOCKED)
+#define VM_OBJECT_LOCK_DOWNGRADE(object) \
+ rw_downgrade(&(object)->lock)
#define VM_OBJECT_RLOCK(object) \
rw_rlock(&(object)->lock)
#define VM_OBJECT_RUNLOCK(object) \
OpenPOWER on IntegriCloud