svn commit: r228251 - stable/8/sys/vm
Alan Cox
alc at FreeBSD.org
Sun Dec 4 02:06:12 UTC 2011
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) {
More information about the svn-src-all
mailing list