From nobody Fri Mar 03 16:25:03 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 4PStc03bXMz3w5Py; Fri, 3 Mar 2023 16:25:04 +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 4PStc00Dv8z3hfC; Fri, 3 Mar 2023 16:25:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677860704; 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=YNtwq00IF8FoYEehLYAIO/N9SZjs4Fjbd1TVlbyBAAQ=; b=Fazk1qucClsENU6MNf2CpjmyU5GifeN4T4kGnjIqn4630X0Ki80Jsh8qK8zuzrELYJi7Fu 9SVNEEPY60D26T3BQjdruMPyfeXotBuENirMTbRAZ4bM2EVAp/Df55NQNp/9/SaqJ8HBPn ONMvqLJCy8iBjH6oeMRzMKf8CaybMI2znGHPYRh8MGVult4+jKlf0mTjQyAFW9B/+ilu7u PmTxCR7r0QG5Se3CHh2ixTN9x7o1jL14wA72cFGSYCLLN+ghaXanbPDZZPcu2ol2PdiwzS EOt1UNGSK8ebb77EEnwLz8THTsDZ9KoI0F7FIeAcdQXNLzHJ7Jm61SBv2B9aEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677860704; 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=YNtwq00IF8FoYEehLYAIO/N9SZjs4Fjbd1TVlbyBAAQ=; b=n0I4xwZI5mhbNyuLq74r2iOCGi7lN4SuP7cNRsv4P+VkbsfkT7PXKXmo9xcu1P92L5Bhl+ hKO9cAPjR7hi0lEfvLmfXcCoCdNwQ3R/5mTrSRjYgAhoxbsB/ntG2/CImzmQvOX8Mnyn9j ZwNoG0MLRShQAKHzlX325PoXL46OI71JPSMFbX1TQ9JFQO3ictic+lb8g5gztn1/ajOt5s iXg4Bk5+Ho96aXbR7xTKVOKu7yRKqP1x0mSEBCpt8zLoKXDTuyyO8J0lfjSnK6of4VI3vq RDKlg2PBk0qwnz3bzTLF7/51Km3uGvVLSMcuzW+iDZRWYnlRRlyho3OqrCbmkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677860704; a=rsa-sha256; cv=none; b=EfTvycpk767w2c9rGkrjulsbm5vu+HWYyUqbc0kiE7EtHcC2Rm/CucyTHvPS7p+lKd+Zyk LuvECN87vVNZuUkU12XbiloBZPdtOhi9DEvPTdyng+h1R/ZLPmSseReMcHS1VG3d9qK6U/ aInEusOsfLOvxuTqzn7DKMGK8mdBq4UoExKTn9QAl70ZUk0WsN4WIy0hD6m9QgBstWNZue dzTonOps65aslu0MlzVC/lUROmOvCYjXTqOBukyBPvwKrG5/yiH9Hng7AbopYY4UHTwxy2 v5lNyQmjEreToqE6fPLeKtBDP1AR4NXtxjOcDISo1EIE71ZKiREjNfWwuehjbA== 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 4PStbz6PZKz14KV; Fri, 3 Mar 2023 16:25:03 +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 323GP3en016949; Fri, 3 Mar 2023 16:25:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 323GP3gD016948; Fri, 3 Mar 2023 16:25:03 GMT (envelope-from git) Date: Fri, 3 Mar 2023 16:25:03 GMT Message-Id: <202303031625.323GP3gD016948@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 831601773e5a - main - deadlkres: Make parameters settable with tunables 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 831601773e5ab58b9485c1b111eb8c7c7343abf6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=831601773e5ab58b9485c1b111eb8c7c7343abf6 commit 831601773e5ab58b9485c1b111eb8c7c7343abf6 Author: Mark Johnston AuthorDate: 2023-03-03 16:16:16 +0000 Commit: Mark Johnston 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 */