From nobody Thu Oct 12 05:10:55 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 4S5d5C6Wr8z4xFfy; Thu, 12 Oct 2023 05:10:55 +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 4S5d5C5vdbz4gFx; Thu, 12 Oct 2023 05:10:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697087455; 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=bqSZXHoMFrHeQVH3Z/XRXWc6/uJTXkINS5qjIowgQEE=; b=Ew2nGjwWo3AUrRzETscJfJshVLuhCeAkSjFDGZ1xY6SnGapkY3vsZmHIDlFvZ8AGgED3ed /7iPaZRpmAgc1i3dHyS3XvyaIlEniKtzQPkA2ycwoBhQb/TmFQsy7CCv+meemqfW6uOG/6 m3inzmrZu/JBfV4gBrHOCq09iYO2CySpCLrJImbodX6/rsmM+aAcYFLXVJ4JE3xQCtDhIo lKa3TW8vKKmDHBPupZ/iBFa2/FPRHzVtIJxYp3dqqoAq95+Grf5E8vRjMcrjbPFkpRD/kW +X8guuJYdq8bU1nxW22iXJ6AqOqo158SPQt9yQXFsmSQap78eSaXEUO8vmB0yg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697087455; a=rsa-sha256; cv=none; b=bn/2vRSyWN//lRXf8OnvYxk4jz62Tx8AC8lUM77zQ8rnIqFuxn//C+j5rduXzhK1WyIA6G eEvg+jdlA1sETAD0jKxnQdOLvpl2Sv/fdqi77CcyOYY3deVC7KN/PyXMbrHZCQO1NdNxcJ y2hTtArVaCEAWuOXhOESv5amg9S5O1fJUqhcYviH4lYgeltN6rQ9TBcHl01Q78hg7Tde+C 4/wrKxX6zURDSiaET+oskL/r+egR17gOjZBWDkD6EpBiTbDDhPsig/pCoQKhFR011zU0M4 Cg3E81swzJBlcmZyb7nWtbatWEIwzSrmj/C1tz5V3NSzV7eBDF3C4zHGONeMqw== 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=1697087455; 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=bqSZXHoMFrHeQVH3Z/XRXWc6/uJTXkINS5qjIowgQEE=; b=iQQFW9OwyfJXW9Y/cmqDftHRoEkfbcPeTZhkgdXHO6J3fbdeey3ij/PuJZvH4vdlyMOYIV eBOKQH6KXfpvTBw07VpQB5WgByS6cM1j92beQo4r2Achq3wEYxAFyUDcqCxROSkkkYaPmg I4fkrFUZ3880r4whfDQsa+XiuFTwTIBAB6A1NTAumNG4BkQ1/5kXbfhLIF/skcA9i+DeLa eXRwzfaOi9b7mm9rMnuIGlBFQWLJbftsmDuYi/cb6d5om2pQi0P3slwfZK+GykRA4TAttU AQewJ/bjJJQHPD/SiV/6jVg8cFs7yKg59m3uXz9KbIaGBHlXivn31Z3KncUcyg== 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 4S5d5C4yZdzr3H; Thu, 12 Oct 2023 05:10:55 +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 39C5Atcl071257; Thu, 12 Oct 2023 05:10:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39C5AtbZ071254; Thu, 12 Oct 2023 05:10:55 GMT (envelope-from git) Date: Thu, 12 Oct 2023 05:10:55 GMT Message-Id: <202310120510.39C5AtbZ071254@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: e266819e47f7 - stable/12 - 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/12 X-Git-Reftype: branch X-Git-Commit: e266819e47f742fdff6b8cf8f34a9f53518aef75 Auto-Submitted: auto-generated The branch stable/12 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=e266819e47f742fdff6b8cf8f34a9f53518aef75 commit e266819e47f742fdff6b8cf8f34a9f53518aef75 Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:21 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 05:09:27 +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) (cherry picked from commit 4bf38105464ba4dde42a9d3cf223f152aa980a1b) (cherry picked from commit 7ac42534c2343f2fc80feb1702751094d41e6873) --- 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 07171b83923f..a7883cc8d68b 100644 --- a/sys/cam/scsi/scsi_all.c +++ b/sys/cam/scsi/scsi_all.c @@ -9243,7 +9243,8 @@ sysctl_scsi_delay(SYSCTL_HANDLER_ARGS) return (error); return (set_scsi_delay(delay)); } -SYSCTL_PROC(_kern_cam, OID_AUTO, scsi_delay, CTLTYPE_INT|CTLFLAG_RW, +SYSCTL_PROC(_kern_cam, OID_AUTO, scsi_delay, + CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_NOFETCH, 0, 0, sysctl_scsi_delay, "I", "Delay to allow devices to settle after a SCSI bus reset (ms)");