From nobody Wed Apr 12 04:21:23 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 4Px8fW6PbZz45Cc2; Wed, 12 Apr 2023 04:21:23 +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 4Px8fW1s1lz3yp0; Wed, 12 Apr 2023 04:21:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681273283; 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=VHed9magVPokBQcE0+RG8SQfrEH0swcEt8JZFgX0lO4=; b=biTGzPx1Bvk1G3DCD/uE40kYOf50wTOQm4GUu89rkMmcBgguhbDIu9FUSloop+ffQMZ6l2 x8P7ye/VgE5K0TrWXoIUPfkvL7rNIPHKvzIMveNr/nhfAIvpP/7pN8wkx3wnYbnBb715zr KJALbjQj11wkAZ2lZ7dbqQ3wop20FOK5onIAXyOA81q9tQBIQ7BxOy8Ed9KhF9cEIepa/I ROo8AzDJE+IPLrfb4z6aYo6t65JkOdtp/++fJay065G1yyCL3oFlR86OuugoEnDfUlg4Y+ rFphgN03diZ6OCMz4+3YlsytMYRqRRMcgAdHqlP144Xq6jM7R5YQNE1F9LXCaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681273283; 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=VHed9magVPokBQcE0+RG8SQfrEH0swcEt8JZFgX0lO4=; b=cUZwSu6FWc8+xaUBPrdi3rpGNlTDcCz4W513FtzjrPr85857XBe/xXw3vzhuGlg5LZIxUU lX2AoFKYHrY1KU48a6/jXWTtWrvtlsBGOX39b/ed9NhktveIjlFGE0zDBqOsAfhUWS9UN1 kAYcLMku4LaaBs6CyT6sf9SczNX+2Wb2cNaZJpzGRj1GyPqlYDgPNi8SOZymYKdA28U7Ra doFeg8gWYIjzLsybKKCYV3esylQfJPrdu8g+d6Fz857dYvn1rC4uEt2lRuUStcZLihLIhI a3iOPwJJUdXJ0FJrKK/TWPKAQTBFG4Llq7VQEXxcx3uz4zeB6u+s+Xs4J9+DFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681273283; a=rsa-sha256; cv=none; b=BGlbBkqHXW0okjmw9h2hS3EeEyltnIPzKOIIxsJzSyaJUzVmLpA9EsDDG0IM89qF8/GMdP 4yQB0rvSEVgJoJmuxSGtHoTMEyciFjQqQy22+9yhc3Bur9GWA0lb9SHKXEV96eJj8cYhHJ jzdLq/islEaXesImlwjEWmfF0LC5J0KSd8azfnYvJk3gVmVeY+euK1MDyCbgo57lG1LnhH vaPzWI08lNWWwMobQUVM0kr6PpMFM5OnE36y1Wq1r5G2ESRm1rCHGD8GahG6mbZe9Zz2ZF D1vqaA8+3o5v+fIjL+y1mW1dEXc+G3nUN7cut5NNSiw741MFxkPvEstMm23uwA== 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 4Px8fW0vdvzlZt; Wed, 12 Apr 2023 04:21:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33C4LNeA091917; Wed, 12 Apr 2023 04:21:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33C4LNv1091916; Wed, 12 Apr 2023 04:21:23 GMT (envelope-from git) Date: Wed, 12 Apr 2023 04:21:23 GMT Message-Id: <202304120421.33C4LNv1091916@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: 69cb72b8728b - main - cam iosched: Use the existing CTLFLAG_RDTUN and CTLFLAG_RWTUN flag definitions 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: 69cb72b8728ba605d6cc8758480eca3fc6fd2ed6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=69cb72b8728ba605d6cc8758480eca3fc6fd2ed6 commit 69cb72b8728ba605d6cc8758480eca3fc6fd2ed6 Author: Zhenlei Huang AuthorDate: 2023-04-12 04:20:38 +0000 Commit: Zhenlei Huang CommitDate: 2023-04-12 04:20:38 +0000 cam iosched: Use the existing CTLFLAG_RDTUN and CTLFLAG_RWTUN flag definitions Use them when possible, instead of separated flags. No functional change intended. Reviewed by: hselasky, erj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D39466 --- sys/cam/cam_iosched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/cam/cam_iosched.c b/sys/cam/cam_iosched.c index 34c2ee2cbd17..b351453b2460 100644 --- a/sys/cam/cam_iosched.c +++ b/sys/cam/cam_iosched.c @@ -74,7 +74,7 @@ static SYSCTL_NODE(_kern_cam, OID_AUTO, iosched, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, #ifdef CAM_IOSCHED_DYNAMIC static bool do_dynamic_iosched = true; -SYSCTL_BOOL(_kern_cam_iosched, OID_AUTO, dynamic, CTLFLAG_RD | CTLFLAG_TUN, +SYSCTL_BOOL(_kern_cam_iosched, OID_AUTO, dynamic, CTLFLAG_RDTUN, &do_dynamic_iosched, 1, "Enable Dynamic I/O scheduler optimizations."); @@ -99,7 +99,7 @@ SYSCTL_BOOL(_kern_cam_iosched, OID_AUTO, dynamic, CTLFLAG_RD | CTLFLAG_TUN, * Note: See computation of EMA and EMVAR for acceptable ranges of alpha. */ static int alpha_bits = 9; -SYSCTL_INT(_kern_cam_iosched, OID_AUTO, alpha_bits, CTLFLAG_RW | CTLFLAG_TUN, +SYSCTL_INT(_kern_cam_iosched, OID_AUTO, alpha_bits, CTLFLAG_RWTUN, &alpha_bits, 1, "Bits in EMA's alpha.");