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
This commit is contained in:
Jeff Roberson 2019-12-25 19:26:35 +00:00
parent eb342591f3
commit 3639ac42e5

View File

@ -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);