summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pageout.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2010-04-30 22:31:37 +0000
committerkmacy <kmacy@FreeBSD.org>2010-04-30 22:31:37 +0000
commit94779e71c30c7ed31273bb723318146a4e2288ba (patch)
tree9a5773d896cde4b8b632643ac8356e0eceb63243 /sys/vm/vm_pageout.c
parent16fdb0146a9c17f1b387b08ba0fcf4c37ef35ba1 (diff)
downloadFreeBSD-src-94779e71c30c7ed31273bb723318146a4e2288ba.zip
FreeBSD-src-94779e71c30c7ed31273bb723318146a4e2288ba.tar.gz
push up dropping of the page queue lock to avoid holding it in vm_pageout_flush
Diffstat (limited to 'sys/vm/vm_pageout.c')
-rw-r--r--sys/vm/vm_pageout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 73c51b3..39a06f8 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -433,6 +433,8 @@ vm_pageout_flush(vm_page_t *mc, int count, int flags)
int i;
VM_OBJECT_LOCK_ASSERT(object, MA_OWNED);
+ mtx_assert(&vm_page_queue_mtx, MA_NOTOWNED);
+
/*
* Initiate I/O. Bump the vm_page_t->busy counter and
* mark the pages read-only.
OpenPOWER on IntegriCloud