From nobody Thu Oct 12 04:09:52 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 4S5bkm31Bcz4xBNl; Thu, 12 Oct 2023 04:09:52 +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 4S5bkm2XQ7z4T8w; Thu, 12 Oct 2023 04:09:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697083792; 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=0OVlMqelgvBdjASTJUCYMItiYICM07LHNQmYVG1/jiI=; b=AXX4q02nuMYb2o5XrFAb0RQ6eLr4bIez7P//4uD4uWbaxdh7nAlWBHvOvvFNzaRqQtjJip QTWKyw3/4f89DU50Crolk/+johBJsjBvaXjRPHki63A/PRyiFtlv+umXNV+daZ4ffZ6iPx 7tqxwx6Eb2kkWkV8GLmXFGceS8ibCfxBEAx5kfN8xYr3vyMrTJ7C3bCAtuTtAGKXiUsktX LZSbH3V9s4lzGh1mMzx8IsBcD4lM1N7m4AjIGLHkl03w+EWIWRYaoKxvqwOCWEBlS2WGn0 uYoJ3ZFO8K331wfJqlEQruTjTyEraD39RB1rYksjCBHKJGEYwNLX1FVoG+LEzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697083792; a=rsa-sha256; cv=none; b=ssJQcE4hVuOGdYBptkcfuf4ibd4PYT1TtHTUk2iSeT2DCdTNMVscqtiLmGjz6Dwwwhdro9 2cm6zxNby9adzDdSu6YwbV8UpnSHgsAuXUazO+uRU74+rHx7EQ2PnlBBdXe5SVUEgjmIJS RvkP7vuJgtJ700gWIaC9PZKXdLNbbmu3MahJbfUE8Xw2copSuB17PzXkMv0r9Jco59lfB8 RcjUFz14RZnh+Eu7IcDX6njyv5MZcfWOkh4ux4+mqqBezQauQni6Y//CBpFUI1wqBdOw4e Mxw9MZ6OxAdD2mvGSUyoqVjrVz9j689nDr91IFPoTDMFjCqN1WP9Mo8/t9imcw== 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=1697083792; 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=0OVlMqelgvBdjASTJUCYMItiYICM07LHNQmYVG1/jiI=; b=Z8bJHkzeUtUbhgXFGm7ackNajjGU3gWFLEVKP4/aW/39kCMmif2rX4zpLZHLpqxjGtEstx PGifYf33N5NmgzLg1qnEzE1sQA2BMw/9WskGxfrCHp6kFUyAU6pXFqtSbA/giSCjMnHAyy O6PJBS3pMnqzS5DzJNaE9nHHzSSyjU0aYbsS5FzDOrpTDFyih52+AiYwyxx/3ao3d4bvM1 DdgWd6SB2yT05TGNKSdCKhDnrJVlutt2Zz0P9J7zxB4ipROsFLv4xF1UyIECWLwO4AEiFH +m9W9h14OZ/wF0x1XkheClAquB0VQQVABVjDhaTLBDLwHG9KbUPkS1rkcpGYpg== 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 4S5bkm1bwjzpxW; Thu, 12 Oct 2023 04:09:52 +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 39C49qE0058486; Thu, 12 Oct 2023 04:09:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39C49qSG058484; Thu, 12 Oct 2023 04:09:52 GMT (envelope-from git) Date: Thu, 12 Oct 2023 04:09:52 GMT Message-Id: <202310120409.39C49qSG058484@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: 4bf38105464b - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 4bf38105464ba4dde42a9d3cf223f152aa980a1b Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=4bf38105464ba4dde42a9d3cf223f152aa980a1b commit 4bf38105464ba4dde42a9d3cf223f152aa980a1b Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:21 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 04:08:11 +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) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42113 (cherry picked from commit e2ad7ce37b1a354750d2dd3567e77f72edeb7e1d) --- 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