summaryrefslogtreecommitdiffstats
path: root/src/udev/udev-manager.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-10-10 03:42:24 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-10-11 22:34:07 +0200
commitea4af553d8c0fd9669d329d89e329d7270102032 (patch)
tree953a56e0cbc38a24f9c465f58bb1401998cacfe4 /src/udev/udev-manager.c
parentudev-node: drop workaround for by-diskseq symlinks (diff)
downloadsystemd-ea4af553d8c0fd9669d329d89e329d7270102032.tar.xz
systemd-ea4af553d8c0fd9669d329d89e329d7270102032.zip
udev-node: drop unnecessary manager side cleaning up logic for stack directory
Unnecessary stack directories and their lock files are removed by workers. Hence, the logic is not necessary anymore.
Diffstat (limited to 'src/udev/udev-manager.c')
-rw-r--r--src/udev/udev-manager.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/udev/udev-manager.c b/src/udev/udev-manager.c
index 08ed176faf..32bc0db345 100644
--- a/src/udev/udev-manager.c
+++ b/src/udev/udev-manager.c
@@ -583,9 +583,6 @@ static int event_queue_start(Manager *manager) {
if (!manager->events || manager->exit || manager->stop_exec_queue)
return 0;
- /* To make the stack directory /run/udev/links cleaned up later. */
- manager->udev_node_needs_cleanup = true;
-
r = event_source_disable(manager->kill_workers_event);
if (r < 0)
log_warning_errno(r, "Failed to disable event source for cleaning up idle workers, ignoring: %m");
@@ -1181,11 +1178,6 @@ static int on_post(sd_event_source *s, void *userdata) {
/* There are no idle workers. */
- if (manager->udev_node_needs_cleanup) {
- (void) udev_node_cleanup();
- manager->udev_node_needs_cleanup = false;
- }
-
if (manager->exit)
return sd_event_exit(manager->event, 0);