From 625e38eddc8b523d10948382f838410bcea38748 Mon Sep 17 00:00:00 2001 From: alc Date: Sun, 25 Nov 2007 20:37:29 +0000 Subject: Make contigmalloc(9)'s page laundering more robust. Specifically, use vm_pageout_fallback_object_lock() in vm_contig_launder_page() to better handle a lock-ordering problem. Consequently, trylock's failure on the page's containing object no longer implies that the page cannot be laundered. MFC after: 6 weeks --- sys/vm/vm_pageout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/vm/vm_pageout.c') diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index d21277b..f5d4ee7 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -230,7 +230,7 @@ static void vm_pageout_page_stats(void); * This function depends on both the lock portion of struct vm_object * and normal struct vm_page being type stable. */ -static boolean_t +boolean_t vm_pageout_fallback_object_lock(vm_page_t m, vm_page_t *next) { struct vm_page marker; -- cgit v1.1