Date: Sun, 4 Dec 2011 02:13:54 +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-7@freebsd.org Subject: svn commit: r228252 - stable/7/sys/vm Message-ID: <201112040213.pB42DsJd066029@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: alc Date: Sun Dec 4 02:13:54 2011 New Revision: 228252 URL: http://svn.freebsd.org/changeset/base/228252 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/7/sys/vm/vm_contig.c Directory Properties: stable/7/sys/ (props changed) stable/7/sys/cddl/contrib/opensolaris/ (props changed) stable/7/sys/contrib/dev/acpica/ (props changed) stable/7/sys/contrib/pf/ (props changed) Modified: stable/7/sys/vm/vm_contig.c ============================================================================== --- stable/7/sys/vm/vm_contig.c Sun Dec 4 02:06:12 2011 (r228251) +++ stable/7/sys/vm/vm_contig.c Sun Dec 4 02:13:54 2011 (r228252) @@ -251,6 +251,7 @@ retry: vm_contig_grow_cache(tries); 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?201112040213.pB42DsJd066029>