Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Drop empty priority lists, not the full ones. Fixes ...



details:   https://anonhg.NetBSD.org/src/rev/d5a6301d1d22
branches:  trunk
changeset: 326935:d5a6301d1d22
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Feb 22 19:05:31 2014 +0000

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

diffstat:

 sys/uvm/uvm_swap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 751181b87795 -r d5a6301d1d22 sys/uvm/uvm_swap.c
--- a/sys/uvm/uvm_swap.c        Sat Feb 22 19:03:06 2014 +0000
+++ b/sys/uvm/uvm_swap.c        Sat Feb 22 19:05:31 2014 +0000
@@ -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 @@
        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));



Home | Main Index | Thread Index | Old Index