summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pageout.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2007-11-25 20:37:29 +0000
committeralc <alc@FreeBSD.org>2007-11-25 20:37:29 +0000
commit625e38eddc8b523d10948382f838410bcea38748 (patch)
tree364366c6cc52df834ec3c2828985b5fef1a6d111 /sys/vm/vm_pageout.c
parentfe29db8e3b4c220b99a7cb801aa9de3d1db113a4 (diff)
downloadFreeBSD-src-625e38eddc8b523d10948382f838410bcea38748.zip
FreeBSD-src-625e38eddc8b523d10948382f838410bcea38748.tar.gz
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
Diffstat (limited to 'sys/vm/vm_pageout.c')
-rw-r--r--sys/vm/vm_pageout.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud