Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2019 19:26:35 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r356079 - head/sys/vm
Message-ID:  <201912251926.xBPJQZo9094631@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jeff
Date: Wed Dec 25 19:26:35 2019
New Revision: 356079
URL: https://svnweb.freebsd.org/changeset/base/356079

Log:
  Fix a bug with _NUMA domains introduced in r339686.  When M_NOWAIT is
  specified there was no loop termination condition in keg_fetch_slab().
  
  Reported by:	pho
  Reviewed by:	markj

Modified:
  head/sys/vm/uma_core.c

Modified: head/sys/vm/uma_core.c
==============================================================================
--- head/sys/vm/uma_core.c	Wed Dec 25 18:24:38 2019	(r356078)
+++ head/sys/vm/uma_core.c	Wed Dec 25 19:26:35 2019	(r356079)
@@ -3084,6 +3084,8 @@ restart:
 			return (slab);
 		}
 		KEG_LOCK(keg);
+		if (!rr && (flags & M_WAITOK) == 0)
+			break;
 		if (rr && vm_domainset_iter_policy(&di, &domain) != 0) {
 			if ((flags & M_WAITOK) != 0) {
 				KEG_UNLOCK(keg);



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