Date: Sat, 11 Oct 2025 05:08:40 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 6506630a28bc - stable/15 - vm_fault_busy_sleep(): update comment after addition of allocflags arg Message-ID: <202510110508.59B58elt051486@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/15 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6506630a28bcf79e6c6e9cbb573a1b1e165c800f commit 6506630a28bcf79e6c6e9cbb573a1b1e165c800f Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2025-09-15 00:52:47 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2025-10-11 05:08:13 +0000 vm_fault_busy_sleep(): update comment after addition of allocflags arg (cherry picked from commit f1b656f14464c2e3ec4ab2eeade3b00dce4bd459) --- sys/vm/vm_fault.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index dfd711ca93ea..2e150b368d71 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -1453,11 +1453,10 @@ vm_fault_getpages(struct faultstate *fs, int *behindp, int *aheadp) * and we could end up trying to pagein and pageout the same page * simultaneously. * - * We can theoretically allow the busy case on a read fault if the page - * is marked valid, but since such pages are typically already pmap'd, - * putting that special case in might be more effort then it is worth. - * We cannot under any circumstances mess around with a shared busied - * page except, perhaps, to pmap it. + * We allow the busy case on a read fault if the page is valid. We + * cannot under any circumstances mess around with a shared busied + * page except, perhaps, to pmap it. This is controlled by the + * VM_ALLOC_SBUSY bit in the allocflags argument. */ static void vm_fault_busy_sleep(struct faultstate *fs, int allocflags)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510110508.59B58elt051486>