Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Oct 2025 00:30:15 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: 0c7c1c27ea9e - stable/14 - vm_fault_busy_sleep(): update comment after addition of allocflags arg
Message-ID:  <202510130030.59D0UFtZ047223@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=0c7c1c27ea9eed8aefa236daa13eabb5bd050cfc

commit 0c7c1c27ea9eed8aefa236daa13eabb5bd050cfc
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-09-15 00:52:47 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-10-13 00:23:46 +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 aad112a652ed..9f7176eebabb 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -1440,11 +1440,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?202510130030.59D0UFtZ047223>