summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vm_contig.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/vm_contig.c b/sys/vm/vm_contig.c
index 722ece3..14c4dc2 100644
--- a/sys/vm/vm_contig.c
+++ b/sys/vm/vm_contig.c
@@ -111,9 +111,11 @@ vm_contig_launder(int queue)
vm_pageout_flush(&m_tmp, 1, 0);
return (TRUE);
}
- }
- if ((m->dirty == 0) && (m->busy == 0) && (m->hold_count == 0))
+ } else if (m->busy == 0 && m->hold_count == 0) {
+ vm_page_lock_queues();
vm_page_cache(m);
+ vm_page_unlock_queues();
+ }
}
return (FALSE);
}
OpenPOWER on IntegriCloud