From 16fdb0146a9c17f1b387b08ba0fcf4c37ef35ba1 Mon Sep 17 00:00:00 2001 From: kmacy Date: Fri, 30 Apr 2010 21:21:21 +0000 Subject: [PATCH] don't call vm_pageout_flush with the page queue mutex held Reported by: Michael Butler --- sys/vm/vm_object.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 47ef97371512..7e1cc2216ca7 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -1058,7 +1058,9 @@ vm_object_page_collect_flush(vm_object_t object, vm_page_t p, int curgeneration, } runlen = maxb + maxf + 1; + vm_page_unlock_queues(); vm_pageout_flush(ma, runlen, pagerflags); + vm_page_lock_queues(); for (i = 0; i < runlen; i++) { if (ma[i]->dirty) { vm_page_unlock_queues();