From nobody Thu Oct 12 15:02:46 2023 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 4S5tD71xQYz4wV20; Thu, 12 Oct 2023 15:02:47 +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 4S5tD71BBJz4ZDg; Thu, 12 Oct 2023 15:02:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697122967; 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=kjy7vsW9d3y2SUSL9T43yqW7qGNsf7mdDZYHB3N0QlQ=; b=jj0/pGbu0k3zGNqLuWKr66rdpoCvm/pgkrOzudYTHM2QfsifX8NpBxYryeR3syvyvt96e2 TLb2Ju3xSPZzky8/ssAL0K41JOySLXeBY+ocquBH2zqaNcT2I0D3vgkeXPGR1LW7/XoYq0 TUfEQHbxxj3YA/UJ19KcaJEQ+gM3wCvcVY3hldLdy/fFdawShxseSyGL1BmK2j9Vwew0Gp 62ZuGSv3QlBOe9xcuE57Dj6KqaekFkCOYopsMU9lpcXXwtL3ML/E8fNPlwO72jepbYw2x9 jXit+Q1uBQgLUUCJ0q5RTfZlwujLBmhREdQPSR2yWIhRuYzCbiJNYbjPC/YNOQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697122967; a=rsa-sha256; cv=none; b=uPfZNu/ce9tlplTiYrYxNKtGFL4B831106M+cd2k19yiCcRarQ3Ng7e/CG0oCaK5QgPtyl 00gqmtpP11CMaIf1rGIDaUf6zXesPdCwX1iqcErmJybM7QaaoP8+BV7fgFtQu2jFaTagij W5j4/ibnOeEChxotf/bgqROm5F7EIr6s1rj8eF65OjIwX6jiqt9w6LjxlBYNDAzIoWds04 7ZpUfX000qnzV3FMq1r0WeOlSY3ZYn9hT5sIsheqhH7fAow3fyRuwkkcsUyalHLXOWeH2C /mDWVMcHJX4xeLPrhjiUu+rnuCRTHku+04zAdLYryaQKeN4aejdbZObZCKyf3A== 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=1697122967; 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=kjy7vsW9d3y2SUSL9T43yqW7qGNsf7mdDZYHB3N0QlQ=; b=gloxc6QPWeTcgZ6CHGDxryJdm1lBlFdrx7DQCK9GD/KXsSBQl0cPg09QRp46AN/FuMuACX vk+fQ2jUQSFGQ7n8MUWwutemyiaTsqbwWT8wpkTAwDqrWB7EATQXgjZyHbXyJkp/8q7Ans zSZfDqndQkYSV+Y+ENtMBaq4iZCVL9Pt83RIrN7uzgW+WSayo0gUE6qMQWXllgebNPAXGd Jb53K3zDgNdA0OTRGcwx345hrEqyWsgNj71hNYP/1S8sq4khbT7SeeCaP1prwLhnEwV1Qe m9UbKrlk1+5faMP2t8QKSm4p+tiNU8pFTdDaO7/WmE+I2AxE2CX7nYiflv1s7A== 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 4S5tD70CPVz17xW; Thu, 12 Oct 2023 15:02:47 +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 39CF2kho056887; Thu, 12 Oct 2023 15:02:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39CF2k3C056884; Thu, 12 Oct 2023 15:02:46 GMT (envelope-from git) Date: Thu, 12 Oct 2023 15:02:46 GMT Message-Id: <202310121502.39CF2k3C056884@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: ca40845c3aba - releng/14.0 - cam/scsi: Add sysctl flag CTLFLAG_TUN to loader tunable 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/releng/14.0 X-Git-Reftype: branch X-Git-Commit: ca40845c3abae897f51733a41dc85beeddea6be5 Auto-Submitted: auto-generated The branch releng/14.0 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=ca40845c3abae897f51733a41dc85beeddea6be5 commit ca40845c3abae897f51733a41dc85beeddea6be5 Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:21 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 14:59:42 +0000 cam/scsi: Add sysctl flag CTLFLAG_TUN to loader tunable The sysctl variable 'kern.cam.scsi_delay' 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 (for #cam) Approved by: re (gjb) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42113 (cherry picked from commit e2ad7ce37b1a354750d2dd3567e77f72edeb7e1d) (cherry picked from commit 4bf38105464ba4dde42a9d3cf223f152aa980a1b) --- sys/cam/scsi/scsi_all.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c index 985547b7ce20..0e42403d74a6 100644 --- a/sys/cam/scsi/scsi_all.c +++ b/sys/cam/scsi/scsi_all.c @@ -9406,7 +9406,8 @@ sysctl_scsi_delay(SYSCTL_HANDLER_ARGS) return (set_scsi_delay(delay)); } SYSCTL_PROC(_kern_cam, OID_AUTO, scsi_delay, - CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, 0, sysctl_scsi_delay, "I", + CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_MPSAFE, + 0, 0, sysctl_scsi_delay, "I", "Delay to allow devices to settle after a SCSI bus reset (ms)"); static int