From nobody Thu Oct 12 05:11:02 2023 X-Original-To: dev-commits-src-branches@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 4S5d5L5Glrz4xFm9; Thu, 12 Oct 2023 05:11:02 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S5d5L4Ylrz4gww; Thu, 12 Oct 2023 05:11:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697087462; 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=TigzgyaSgOfgovHcyMarDi6AWVEx+hl3uGzIBmK23jM=; b=rpGuSFemygokSlstZ6WZ++PtmceS06NJYa+O8cwQpmjeWiIMksStrEwm6kWMlR452p+XzI VEsvnMKQ+o93naygflqfCF56x+bwzqjcjePhb8WvhVpLmXiDKi606bGFFMG/QJUk78vlvm 08VSsgPGJ/3UQ7EwjygBQFe84x9yOd+BYrGfBNPXmP4v4285e1pgbfPjrSbdKdxIGOnPr4 2nZ/pEJLf9LjHiXduZXw333dZj4wBC8RhDBPu0UiqcMwRlxT5h7d920K2NPSKEDgYzEs6P AvF1oep7/4HyXWujDNSgBXhWmQ5dIggxF2numyOGsruMTZE5nvs9ALtH4YhNLw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697087462; a=rsa-sha256; cv=none; b=LHSTP+cKTuaso14V8ZiHWguCMS7yxLTNWfVSwFjG7vpDCyVGK8+CKMCZNVbTXs9E45HKb6 N6xBAZrAjCUXowclPHb3oiZ2R4eMJ/vDXQUQx+Pi43sjZTd0Cz0bW3Xxg4yAbKvrfmyrKD CwZqZm8dRlK3LOVo7NMT1DU4hHGgdTcfk09wnpwiPUujrzzxx1e3+falVVBlWKDZnoSnrI iKzKOZCRKJM5JlmRtJsmio9bnFAXY6Za0kHu67ECfPOTGR0CRlqvk9/dgzKPMzqFIhvgQP BniO+qJSZLF0rI83bGEPVfomVyTRbgErTq7rzD7poZWrlK7zjBW9QX/w22vyfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697087462; 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=TigzgyaSgOfgovHcyMarDi6AWVEx+hl3uGzIBmK23jM=; b=W/TGK9u0Ss0GOA+pO37ygeeu7cDEDDrTvVXhCPpBDmTSP4gLI1AWKzV1mSxLWaYHmE/I2b d/ICHiOTUWTU20VtpHp4EGmMaLntkHKyVabZurcpIefUt4ly8BBHy4ZSQmELnYR2KGC/Do 3VgOgTM0L3b52s/LJn896NX0UWgPc1iAm7KY4/MXW9c18jIquMnvWhBpb9AjWe5ivYVkYW alhQ7qV2MbfyZuQXRvsmzMkstwweSmY4RF3jkAZNc0lLpR5L+1yNPjsRpszm64+NgnjuAv qFOlfxs1IFbmU05nWW3HJFaKu6UHvsYveOGqd9FjRHIOLSYkVLtAtvfCLF4wtQ== 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 4S5d5L3czlzqR2; Thu, 12 Oct 2023 05:11:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39C5B2S0071604; Thu, 12 Oct 2023 05:11:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39C5B2ss071601; Thu, 12 Oct 2023 05:11:02 GMT (envelope-from git) Date: Thu, 12 Oct 2023 05:11:02 GMT Message-Id: <202310120511.39C5B2ss071601@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 5e5a2ef8585d - stable/12 - buf: Add sysctl flag CTLFLAG_TUN to loader tunable List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 5e5a2ef8585da72cbdf192016c9e3d02d047cbe0 Auto-Submitted: auto-generated The branch stable/12 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=5e5a2ef8585da72cbdf192016c9e3d02d047cbe0 commit 5e5a2ef8585da72cbdf192016c9e3d02d047cbe0 Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:22 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 05:09:31 +0000 buf: Add sysctl flag CTLFLAG_TUN to loader tunable The sysctl variable 'vfs.unmapped_buf_allowed' is actually a loader tunable. Add sysctl flag CTLFLAG_TUN to it so that `sysctl -T` will report it correctly. No functional change intended. Reviewed by: kib, imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42113 (cherry picked from commit 31b94065300a76e52c26b8caec7256574d64a777) (cherry picked from commit 8c4eaac1534e0486bd0fc6816ccb59fc348a5707) (cherry picked from commit 5184476107f7dfcbc9931a94a91f16c71915bbd9) --- sys/kern/vfs_bio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index b1cc595d2887..47a663c5c50d 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -310,7 +310,8 @@ SYSCTL_COUNTER_U64(_vfs, OID_AUTO, notbufdflushes, CTLFLAG_RD, ¬bufdflushes, static long barrierwrites; SYSCTL_LONG(_vfs, OID_AUTO, barrierwrites, CTLFLAG_RW, &barrierwrites, 0, "Number of barrier writes"); -SYSCTL_INT(_vfs, OID_AUTO, unmapped_buf_allowed, CTLFLAG_RD, +SYSCTL_INT(_vfs, OID_AUTO, unmapped_buf_allowed, + CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &unmapped_buf_allowed, 0, "Permit the use of the unmapped i/o"); int maxbcachebuf = MAXBCACHEBUF;