From nobody Fri Feb 24 19:31:13 2023 X-Original-To: dev-commits-src-all@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 4PNg4151nRz3trbG; Fri, 24 Feb 2023 19:31:13 +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 4PNg414ZC6z3ktZ; Fri, 24 Feb 2023 19:31:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677267073; 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=/ariONyuE8G80QPHCgfkOra8t3W1CrbM5FgC3VJA/fM=; b=fTro6KPJ3XkGk4VvEr/qG2QDctg06We2NB1kTzOOfaKR0jyQficfeJ/bF4c2NugXE6TuGt M1rtHxbjQFZBa61/+QytSpyC3GUtxt24S3URsn2aIeuJYd7uw2Xebz1W9FDH/E+/3KfWy/ I4uyEpm9K704d2MG6/3+60JG5Q/wy9+dXT4YXNVZXloGIggSSH4JzyNpNY3bNsu93RIGmw 7pKHnjwEw34S9SdFqu3JNFoV/RuWIEV8LDmF1TrRhvK2mZ8j/1AwKAECkRwwNJvURSiBic jpnd3NRlnQK2ZhE80kM5HYFnTQxPS7HfORRyC85F47z5x1xRRdrQ62W757HzKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677267073; 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=/ariONyuE8G80QPHCgfkOra8t3W1CrbM5FgC3VJA/fM=; b=Kc0rvWbkcF7hh0429B2PIrSJorZkZSwPFFbOlxkvKgFA6sVFqCPBvvtMS/WD7rJFcqQhqL 2Hvt6B++j7ULXzYRJJ1I/dGkNIxvcREGpReUQd3PTJHw1+j+QdnNov3VNlBTfDZGLGf2NB 297tYsg3romBjrT0Hxi10+aqrPhNB6E/zy4NDpxNOeojBG7+BtLyzCzxnSx47FN6G1svof KyDAYhJH2OMW4f71KnKm5rJbXw8C4ESJKWf4WuQjsm0AcXo9rn2rYJjg0S582hH4OItpn2 1yHmWiEow9B9EvMfUz8IDV9MeREgDMpobczRhgma2KzmrA4Tr/4Ec7T1Ebs1Vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677267073; a=rsa-sha256; cv=none; b=EoMQv0TzL33JQ2r6iVMD8RTA6SYhCkopE5jP44gYblOLXYGAGZnk67cHeZqddlZMwbdsso pnDhv/ZPQks+7E30KD2mv/hQgo07BbOoPTczMMFNaKBjx8tYplwSX4Qs2zQDHSCQdfJFda Ps96CfEF8/oofLMUYcrIs7iDZshyrbFfjhT5/Lz8mUMgvEH8AdIKPHm4NMmO0g12pqDS8g 9OLrUw/ahE67n1hWrZcBqGYDMPSVQGjMFFKrExdVRYjiaYKMKk5kk/UeGhEBlmYg8AbNW3 bZjADewQQ9BZwbc2t0UfvUjZPXtOhHhN8pqQV5a41K4UyXpv3S5ySx02k5eR0A== 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 4PNg413dXgzbd2; Fri, 24 Feb 2023 19:31:13 +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 31OJVDXl076992; Fri, 24 Feb 2023 19:31:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31OJVDNW076991; Fri, 24 Feb 2023 19:31:13 GMT (envelope-from git) Date: Fri, 24 Feb 2023 19:31:13 GMT Message-Id: <202302241931.31OJVDNW076991@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 1ebec3806eed - main - vfs: s/ppsratecheck/eventratecheck List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1ebec3806eed27f2f1ddba1960c1fef905befeb0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=1ebec3806eed27f2f1ddba1960c1fef905befeb0 commit 1ebec3806eed27f2f1ddba1960c1fef905befeb0 Author: Mateusz Guzik AuthorDate: 2023-02-24 19:30:49 +0000 Commit: Mateusz Guzik CommitDate: 2023-02-24 19:30:49 +0000 vfs: s/ppsratecheck/eventratecheck nfc --- sys/kern/vfs_mountroot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_mountroot.c b/sys/kern/vfs_mountroot.c index 3c506378ad2f..79019c4bbc8e 100644 --- a/sys/kern/vfs_mountroot.c +++ b/sys/kern/vfs_mountroot.c @@ -987,7 +987,7 @@ vfs_mountroot_wait(void) curfail = 0; lastfail.tv_sec = 0; - ppsratecheck(&lastfail, &curfail, 1); + eventratecheck(&lastfail, &curfail, 1); td = curthread; while (1) { g_waitidle(td); @@ -996,7 +996,7 @@ vfs_mountroot_wait(void) mtx_unlock(&root_holds_mtx); break; } - if (ppsratecheck(&lastfail, &curfail, 1)) { + if (eventratecheck(&lastfail, &curfail, 1)) { printf("Root mount waiting for:"); TAILQ_FOREACH(h, &root_holds, list) printf(" %s", h->who);