diff options
author | kmacy <kmacy@FreeBSD.org> | 2010-04-30 22:31:37 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2010-04-30 22:31:37 +0000 |
commit | 94779e71c30c7ed31273bb723318146a4e2288ba (patch) | |
tree | 9a5773d896cde4b8b632643ac8356e0eceb63243 /sys/vm/vm_pageout.c | |
parent | 16fdb0146a9c17f1b387b08ba0fcf4c37ef35ba1 (diff) | |
download | FreeBSD-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.c | 2 |
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. |