Date: Wed, 26 Jul 2017 22:32:57 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r321590 - projects/numa2/sys/vm Message-ID: <201707262232.v6QMWv6c024836@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Wed Jul 26 22:32:57 2017 New Revision: 321590 URL: https://svnweb.freebsd.org/changeset/base/321590 Log: Let vm_page_alloc_domain() return NULL even when v_free_count is large. The selected domain may be exhausted even when plenty of free pages are available. Until we have a policy for handling local page shortages, just return NULL to signal that an allocation from a different domain should be attempted. Modified: projects/numa2/sys/vm/vm_page.c Modified: projects/numa2/sys/vm/vm_page.c ============================================================================== --- projects/numa2/sys/vm/vm_page.c Wed Jul 26 22:04:23 2017 (r321589) +++ projects/numa2/sys/vm/vm_page.c Wed Jul 26 22:32:57 2017 (r321590) @@ -1636,10 +1636,11 @@ vm_page_alloc_domain(vm_object_t object, vm_pindex_t p return (NULL); } - /* - * At this point we had better have found a good page. - */ - KASSERT(m != NULL, ("vm_page_alloc: missing page")); + if (m == NULL) { + /* XXX */ + mtx_unlock(&vm_page_queue_free_mtx); + return (NULL); + } vm_phys_freecnt_adj(m, -1); mtx_unlock(&vm_page_queue_free_mtx); vm_page_alloc_check(m);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707262232.v6QMWv6c024836>