diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2022-09-16 17:28:35 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2022-09-16 17:29:37 +0000 |
commit | 50176b0296f0f143f1ac655c8e50ab340f36536a (patch) | |
tree | c932720dc527759fece96bb8b494c14b901cd702 | |
parent | cf13e67730d232eb637987306b13bda100671d97 (diff) | |
download | src-50176b0296f0f143f1ac655c8e50ab340f36536a.tar.gz src-50176b0296f0f143f1ac655c8e50ab340f36536a.zip |
locks: whack a failed experiment in form of restrict_starvation
This was never enabled and only pollutes the code. The issue will
be addressed later in a different manner.
Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r-- | sys/kern/subr_lock.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/kern/subr_lock.c b/sys/kern/subr_lock.c index 9bea021baac4..1061ed5f5d03 100644 --- a/sys/kern/subr_lock.c +++ b/sys/kern/subr_lock.c @@ -64,9 +64,6 @@ __FBSDID("$FreeBSD$"); */ //#define LOCK_PROFILING_DEBUG_SPIN -SDT_PROVIDER_DEFINE(lock); -SDT_PROBE_DEFINE1(lock, , , starvation, "u_int"); - CTASSERT(LOCK_CLASS_MAX == 15); struct lock_class *lock_classes[LOCK_CLASS_MAX + 1] = { @@ -120,14 +117,6 @@ static SYSCTL_NODE(_debug_lock, OID_AUTO, delay, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, "lock delay"); -static u_int __read_mostly starvation_limit = 131072; -SYSCTL_INT(_debug_lock_delay, OID_AUTO, starvation_limit, CTLFLAG_RW, - &starvation_limit, 0, ""); - -static u_int __read_mostly restrict_starvation = 0; -SYSCTL_INT(_debug_lock_delay, OID_AUTO, restrict_starvation, CTLFLAG_RW, - &restrict_starvation, 0, ""); - void lock_delay(struct lock_delay_arg *la) { @@ -141,12 +130,6 @@ lock_delay(struct lock_delay_arg *la) la->delay <<= 1; if (__predict_false(la->delay > lc->max)) la->delay = lc->max; - - if (__predict_false(la->spin_cnt > starvation_limit)) { - SDT_PROBE1(lock, , , starvation, la->delay); - if (restrict_starvation) - la->delay = lc->base; - } } static u_int |