Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Dec 2011 02:06:12 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r228251 - stable/8/sys/vm
Message-ID:  <201112040206.pB426C3m065756@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sun Dec  4 02:06:12 2011
New Revision: 228251
URL: http://svn.freebsd.org/changeset/base/228251

Log:
  MFC r224689
    Fix an error in kmem_alloc_attr().  Unless "tries" is updated,
    kmem_alloc_attr() could get stuck in a loop.

Modified:
  stable/8/sys/vm/vm_contig.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/vm/vm_contig.c
==============================================================================
--- stable/8/sys/vm/vm_contig.c	Sun Dec  4 01:22:22 2011	(r228250)
+++ stable/8/sys/vm/vm_contig.c	Sun Dec  4 02:06:12 2011	(r228251)
@@ -253,6 +253,7 @@ retry:
 				vm_contig_grow_cache(tries, low, high);
 				vm_map_lock(map);
 				VM_OBJECT_LOCK(object);
+				tries++;
 				goto retry;
 			}
 			while (i != 0) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112040206.pB426C3m065756>