daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
e2e886
From c6b36901b8a3771b8c3762faa67f08fc5611de66 Mon Sep 17 00:00:00 2001
e2e886
From: Anita Zhang <the.anitazha@gmail.com>
e2e886
Date: Mon, 14 Jun 2021 10:48:01 -0700
e2e886
Subject: [PATCH] Revert "core: prevent excessive /proc/self/mountinfo parsing"
e2e886
e2e886
This reverts commit d586f642fd90e3bb378f7b6d3e3a64a753e51756.
e2e886
e2e886
sd-event rate limiting has a few issues in 248 that need to be worked
e2e886
out. See: https://github.com/systemd/systemd/pull/19811 and
e2e886
https://github.com/systemd/systemd/pull/19924. Let's try again in 249.
e2e886
---
e2e886
 src/core/mount.c | 6 ------
e2e886
 1 file changed, 6 deletions(-)
e2e886
e2e886
diff --git a/src/core/mount.c b/src/core/mount.c
e2e886
index ca5d0939a1..2939062161 100644
e2e886
--- a/src/core/mount.c
e2e886
+++ b/src/core/mount.c
e2e886
@@ -1859,12 +1859,6 @@ static void mount_enumerate(Manager *m) {
e2e886
                         goto fail;
e2e886
                 }
e2e886
 
e2e886
-                r = sd_event_source_set_ratelimit(m->mount_event_source, 1 * USEC_PER_SEC, 5);
e2e886
-                if (r < 0) {
e2e886
-                        log_error_errno(r, "Failed to enable rate limit for mount events: %m");
e2e886
-                        goto fail;
e2e886
-                }
e2e886
-
e2e886
                 (void) sd_event_source_set_description(m->mount_event_source, "mount-monitor-dispatch");
e2e886
         }
e2e886
 
e2e886
-- 
e2e886
2.31.1
e2e886