diff options
author | attilio <attilio@FreeBSD.org> | 2013-05-21 20:38:19 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2013-05-21 20:38:19 +0000 |
commit | fdf82ef9cfb84888e76e303fe6c9ee30fbc21d1e (patch) | |
tree | 24458ef5e2585280bf95280f83f977fde60faeaa /sys/arm | |
parent | 05bd8275f3829e7d1f55e8faabd64095eab3c291 (diff) | |
download | FreeBSD-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/arm')
-rw-r--r-- | sys/arm/arm/pmap-v6.c | 2 | ||||
-rw-r--r-- | sys/arm/arm/pmap.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/arm/arm/pmap-v6.c b/sys/arm/arm/pmap-v6.c index 1174660..de14b0d 100644 --- a/sys/arm/arm/pmap-v6.c +++ b/sys/arm/arm/pmap-v6.c @@ -2931,6 +2931,8 @@ pmap_enter_object(pmap_t pmap, vm_offset_t start, vm_offset_t end, vm_page_t m; vm_pindex_t diff, psize; + VM_OBJECT_ASSERT_LOCKED(m_start->object); + psize = atop(end - start); m = m_start; rw_wlock(&pvh_global_lock); diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index 0875f83..645e6bb 100644 --- a/sys/arm/arm/pmap.c +++ b/sys/arm/arm/pmap.c @@ -3587,6 +3587,8 @@ pmap_enter_object(pmap_t pmap, vm_offset_t start, vm_offset_t end, vm_page_t m; vm_pindex_t diff, psize; + VM_OBJECT_ASSERT_LOCKED(m_start->object); + psize = atop(end - start); m = m_start; rw_wlock(&pvh_global_lock); |