Module Name:    src
Committed By:   mlelstv
Date:           Sat Feb 22 19:05:32 UTC 2014

Modified Files:
        src/sys/uvm: uvm_swap.c

Log Message:
Drop empty priority lists, not the full ones. Fixes kern/48611.


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/sys/uvm/uvm_swap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_swap.c
diff -u src/sys/uvm/uvm_swap.c:1.166 src/sys/uvm/uvm_swap.c:1.167
--- src/sys/uvm/uvm_swap.c:1.166	Mon Feb  3 13:20:21 2014
+++ src/sys/uvm/uvm_swap.c	Sat Feb 22 19:05:31 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_swap.c,v 1.166 2014/02/03 13:20:21 manu Exp $	*/
+/*	$NetBSD: uvm_swap.c,v 1.167 2014/02/22 19:05:31 mlelstv Exp $	*/
 
 /*
  * Copyright (c) 1995, 1996, 1997, 2009 Matthew R. Green
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_swap.c,v 1.166 2014/02/03 13:20:21 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_swap.c,v 1.167 2014/02/22 19:05:31 mlelstv Exp $");
 
 #include "opt_uvmhist.h"
 #include "opt_compat_netbsd.h"
@@ -397,7 +397,7 @@ swaplist_trim(void)
 	struct swappri *spp, *nextspp;
 
 	LIST_FOREACH_SAFE(spp, &swap_priority, spi_swappri, nextspp) {
-		if (TAILQ_EMPTY(&spp->spi_swapdev))
+		if (!TAILQ_EMPTY(&spp->spi_swapdev))
 			continue;
 		LIST_REMOVE(spp, spi_swappri);
 		kmem_free(spp, sizeof(*spp));

Reply via email to