git: 69cb72b8728b - main - cam iosched: Use the existing CTLFLAG_RDTUN and CTLFLAG_RWTUN flag definitions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Apr 2023 04:21:23 UTC
The branch main has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=69cb72b8728ba605d6cc8758480eca3fc6fd2ed6
commit 69cb72b8728ba605d6cc8758480eca3fc6fd2ed6
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-04-12 04:20:38 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
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.");