From nobody Sat Oct 11 05:08:40 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ckBTh6TFRz6Cd4y; Sat, 11 Oct 2025 05:08:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ckBTh2w9xz4Fr6; Sat, 11 Oct 2025 05:08:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760159320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QGvB243KFjnyUdecwJdAvDhL5yd4BeiyBc1xNUpQH9I=; b=ZIsHu2HelMc51gK1UYFf3PiTHY2+l4Tb+nIpMk/zYgIvhgwSZgbohA3UUV6kNwtLq8JMFp t36OAypov+N22Z6Fwr1yf8SuuYXZrGDVaqO0gNdOHjEs+j3uF6CTFa/C3on0LzfsUvY8Rj 9czMHjg3a4wEnY6BlygylHhXvN4uLbfVRjzhAqTePmynml6AW9sLt9ghdgp13Viqajqq45 epkfsDujeo4B0TJjLsoe8uIwXv/euN9UKeOzPCUp6QZiGVc8dq6RcO886WQV5SUDY5MMnD JxBNPXTp+lXkPrhB7VH5WSImGntr9C8AW70B3Sla0F3dxNCKY6pPmKEkLaR0Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760159320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QGvB243KFjnyUdecwJdAvDhL5yd4BeiyBc1xNUpQH9I=; b=QqxXFYUTAGHvpWQKIm/SIfTbbt+YPFD6Wt1ExC1ZkYVHdi3vVO79FOuROrx6+ohYDlX9Fx 0Ie2XMNoSYyJCmQl9GSXTs7Mpgz9YuUVb6IT1k+JnnDH96r9p1rEqjjchpnYIoYvHl+MWZ es7xeXKrzTnVpv0pkVGGE4ngfnzp9cenwH2df5Uvy6iICqJbrbdWqoGbMBptw8miRd62xt 9ZooZSY4im+uiTY5zd6tjyJelOcWAC5bESu5hA7pCpv9VRBQQFiBwoP/N2iqJEcGEtSVJO 46TicmSarkwTX2IUNzdcFUtVlwjNY+2thdshl5HaZvG2OsOAXpIi7OIkil8QAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760159320; a=rsa-sha256; cv=none; b=f4rPM3o9pyLyrhGtHs3AyqaqIurVw1RwUBV99Vpgk5sEet3P3MHhXuekTylf52cscpd4K4 aWP5udshqeFYE4+LM0l8crX9oeyDdFrfaUQoFFoom7h64kfboxm5EizpSP0JatCEHdbnZB FEe7kFO79JuCwMjRinrvCfksseTfNLu/UGuuO9ucyx4RN8rS7Psk7AD5YaCQw/FknqkrIc ltbNjWMQJ7w3l4y+S7KrKzhd6Ekfvh5NXZZphPv7nxT7hKQFQcZq34JIzEUYCuiltfQjpJ 7CMUa/NC3+LQMOItxp2PILEzs5SyBUasdwq15kqyl5zn0Gy1k5eVL/AIg5t8Kw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ckBTh274tz4JB; Sat, 11 Oct 2025 05:08:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 59B58eQ8051489; Sat, 11 Oct 2025 05:08:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59B58elt051486; Sat, 11 Oct 2025 05:08:40 GMT (envelope-from git) Date: Sat, 11 Oct 2025 05:08:40 GMT Message-Id: <202510110508.59B58elt051486@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 6506630a28bc - stable/15 - vm_fault_busy_sleep(): update comment after addition of allocflags arg List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 6506630a28bcf79e6c6e9cbb573a1b1e165c800f Auto-Submitted: auto-generated The branch stable/15 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6506630a28bcf79e6c6e9cbb573a1b1e165c800f commit 6506630a28bcf79e6c6e9cbb573a1b1e165c800f Author: Konstantin Belousov AuthorDate: 2025-09-15 00:52:47 +0000 Commit: Konstantin Belousov 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)