summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2012-10-13 18:46:46 +0000
committeralc <alc@FreeBSD.org>2012-10-13 18:46:46 +0000
commitc84b1820ea170ef65bd7b322aa5c2515223ee719 (patch)
treedfeec54b15f87e15956732443e4b9c8fea7fd705 /sys/vm/vm_object.c
parent7595cc54ef03b3dfdb45284339c1990929db746e (diff)
downloadFreeBSD-src-c84b1820ea170ef65bd7b322aa5c2515223ee719.zip
FreeBSD-src-c84b1820ea170ef65bd7b322aa5c2515223ee719.tar.gz
Eliminate the conditional for releasing the page queues lock in
vm_page_sleep(). vm_page_sleep() is no longer called with this lock held. Eliminate assertions that the page queues lock is NOT held. These assertions won't translate well to having distinct locks on the active and inactive page queues, and they really aren't that useful. MFC after: 3 weeks
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r--sys/vm/vm_object.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index abf7689..e7e077d 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -820,7 +820,6 @@ vm_object_page_clean(vm_object_t object, vm_ooffset_t start, vm_ooffset_t end,
int curgeneration, n, pagerflags;
boolean_t clearobjflags, eio, res;
- mtx_assert(&vm_page_queue_mtx, MA_NOTOWNED);
VM_OBJECT_LOCK_ASSERT(object, MA_OWNED);
KASSERT(object->type == OBJT_VNODE, ("Not a vnode object"));
if ((object->flags & OBJ_MIGHTBEDIRTY) == 0 ||
@@ -906,7 +905,6 @@ vm_object_page_collect_flush(vm_object_t object, vm_page_t p, int pagerflags,
vm_page_t ma[vm_pageout_page_count], p_first, tp;
int count, i, mreq, runlen;
- mtx_assert(&vm_page_queue_mtx, MA_NOTOWNED);
vm_page_lock_assert(p, MA_NOTOWNED);
VM_OBJECT_LOCK_ASSERT(object, MA_OWNED);
OpenPOWER on IntegriCloud