git: aaac643676bc - stable/13 - vm_page_grab_valid(): clear *mp in case of pager denying page allocation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Jan 2023 03:23:31 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=aaac643676bce2c80a78069e2c4a45deb50448dc commit aaac643676bce2c80a78069e2c4a45deb50448dc Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-12-17 00:12:14 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-01-20 03:19:35 +0000 vm_page_grab_valid(): clear *mp in case of pager denying page allocation Tested by: pho (cherry picked from commit 3249449190c2c71ecfc4fa5f518f94ff552df440) --- sys/vm/vm_page.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 736b25a1f2b5..ecabd6c4798e 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -4678,8 +4678,10 @@ retrylookup: *mp = NULL; return (VM_PAGER_FAIL); } else if ((m = vm_page_alloc(object, pindex, pflags)) == NULL) { - if (!vm_pager_can_alloc_page(object, pindex)) + if (!vm_pager_can_alloc_page(object, pindex)) { + *mp = NULL; return (VM_PAGER_AGAIN); + } goto retrylookup; }