From nobody Mon Oct 09 10:31:53 2023 X-Original-To: dev-commits-src-main@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 4S3wLx5g74z4xKh2; Mon, 9 Oct 2023 10:31:53 +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 4S3wLx59cTz3gns; Mon, 9 Oct 2023 10:31:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696847513; 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=3KerMDJXH8SMDuTJSESQEZ73KRAIW0/XxrN4AOQjJHI=; b=aCUYRnY8l2hrJKr9nxTlGC2uVFlPTkvr6MHrZwIpI0SJ9e2jdrh66gq3u9bilKwpQxjZJH lwXitzAdbRdiV1qLOkm3zkyqSVrFyGTXHPIhKtRFbcuLt4z9VjxFyg1WXVzN066PysXnEr fBHYAPbvsfITDODbLWSd5l5d2pkJGngTroAFfYAY/fS3bfe4qkur7y88mlThx604ALMJGb eQH7KTo6Xbr/XZl449eTqOn78hjdGT736DgoVmj1rxF81E4CSwabjemiCmZwtcxcZI+EXg kNImoUCjjo6s52V4/sG2/VlF8MNLY4yJU7O89KkbxYjMLM3/uvTOQ6A9KmXpXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696847513; a=rsa-sha256; cv=none; b=n8m4KLpAXVWjhn9L9f4mz3V8Z105VKieJBXe/m42KVBkdFEiinxDlvJSrk5uqawdaO8r6h tzQoe5ouUmJgiWnTFSLNwX766G0AYOXoYmjbDu4jR29cY4Gd1d7LlMOC5WDYHtVRLTvbmC zqPJPWlTtGpJrtjVSF1K6/M9dZQd9hCGngsDvGWzSPURxBidgjaNezS88fpZAM9EK+OPDa sRNbB+TsGwXdVIvZ4ffFApbN0pNW1sQvTzefIO5VxlgmEEmvf49FLPKpFi/rRod10sIepj g5NmpJF+nxzhNkZJrTO4HnQieSOR0nZmoQgH7UM5uOjl5QLqj3g65odcweGbiA== 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=1696847513; 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=3KerMDJXH8SMDuTJSESQEZ73KRAIW0/XxrN4AOQjJHI=; b=SqhAaydgWhAwbudKq8Gz/7dTtU36br+4qE0nP3lYPRXt3KFc0DAuEQeyOfoXybw1j1/GAc KF4Qp71zBAi4z324bStkj3dX+CAOWbCupN74+yuuYlF73EdpaxCbC6znmhMSwGkbmG2Jmz FumWub4T2jBIDiuFTr5s5ZYi5DOuJWCI4uaCffxABPYww1BFVzKHl+Zs2eRm3UA6zM6ofF x3EXRCUgHPfktNmebdQ3ZHPcHPDTQ8YMxymFCNfdK5AS15+ASB2znN0vKYH67CnAbx01V2 ejWzNYOvlAWNIZ2zxTfwsfNHI1VKgPxSBANkDkIa935Azq0dKFf3r9MSguIdSg== 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 4S3wLx4FtFzrrq; Mon, 9 Oct 2023 10:31:53 +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 399AVr1N003462; Mon, 9 Oct 2023 10:31:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 399AVrQ8003459; Mon, 9 Oct 2023 10:31:53 GMT (envelope-from git) Date: Mon, 9 Oct 2023 10:31:53 GMT Message-Id: <202310091031.399AVrQ8003459@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: e2ad7ce37b1a - main - cam/scsi: Add sysctl flag CTLFLAG_TUN to loader tunable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: e2ad7ce37b1a354750d2dd3567e77f72edeb7e1d Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=e2ad7ce37b1a354750d2dd3567e77f72edeb7e1d commit e2ad7ce37b1a354750d2dd3567e77f72edeb7e1d Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:21 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-09 10:30:21 +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 --- 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