svn commit: r356079 - head/sys/vm
Jeff Roberson
jeff at FreeBSD.org
Wed Dec 25 19:26:35 UTC 2019
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);
More information about the svn-src-head
mailing list