git: 831601773e5a - main - deadlkres: Make parameters settable with tunables
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Mar 2023 16:25:03 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=831601773e5ab58b9485c1b111eb8c7c7343abf6
commit 831601773e5ab58b9485c1b111eb8c7c7343abf6
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-03-03 16:16:16 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-03-03 16:16:41 +0000
deadlkres: Make parameters settable with tunables
MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: Juniper Networks, Inc.
---
sys/kern/kern_clock.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 1670b6fde0c4..6f1581009dcc 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -300,13 +300,13 @@ SYSINIT(deadlkres, SI_SUB_CLOCKS, SI_ORDER_ANY, kthread_start, &deadlkres_kd);
static SYSCTL_NODE(_debug, OID_AUTO, deadlkres, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
"Deadlock resolver");
-SYSCTL_INT(_debug_deadlkres, OID_AUTO, slptime_threshold, CTLFLAG_RW,
+SYSCTL_INT(_debug_deadlkres, OID_AUTO, slptime_threshold, CTLFLAG_RWTUN,
&slptime_threshold, 0,
"Number of seconds within is valid to sleep on a sleepqueue");
-SYSCTL_INT(_debug_deadlkres, OID_AUTO, blktime_threshold, CTLFLAG_RW,
+SYSCTL_INT(_debug_deadlkres, OID_AUTO, blktime_threshold, CTLFLAG_RWTUN,
&blktime_threshold, 0,
"Number of seconds within is valid to block on a turnstile");
-SYSCTL_INT(_debug_deadlkres, OID_AUTO, sleepfreq, CTLFLAG_RW, &sleepfreq, 0,
+SYSCTL_INT(_debug_deadlkres, OID_AUTO, sleepfreq, CTLFLAG_RWTUN, &sleepfreq, 0,
"Number of seconds between any deadlock resolver thread run");
#endif /* DEADLKRES */