summaryrefslogtreecommitdiff
path: root/src/core/mount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-11-12 09:43:07 +0100
committerLennart Poettering <lennart@poettering.net>2021-11-12 15:52:37 +0100
commitb0c4b2824693fe6a27ea9439ec7a6328a0e23704 (patch)
tree6de004747b232809d43031cbcab83533b52c3e79 /src/core/mount.c
parent6ebbcafeb433958e4552ebf49cacf10a9426d929 (diff)
downloadsystemd-b0c4b2824693fe6a27ea9439ec7a6328a0e23704.tar.gz
pid1: add a manager_trigger_run_queue() helper
We have two different places where we re-trigger the run queue now. let's unify it under a common function, that is part of the Manager code. Follow-up for #20953
Diffstat (limited to 'src/core/mount.c')
-rw-r--r--src/core/mount.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/mount.c b/src/core/mount.c
index 3463641c6c..4f76b552c2 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -1840,15 +1840,12 @@ static bool mount_is_mounted(Mount *m) {
static int mount_on_ratelimit_expire(sd_event_source *s, void *userdata) {
Manager *m = userdata;
- int r;
assert(m);
- /* By entering ratelimited state we made all mount start jobs not runnable, now rate limit is over so let's
- * make sure we dispatch them in the next iteration. */
- r = sd_event_source_set_enabled(m->run_queue_event_source, SD_EVENT_ONESHOT);
- if (r < 0)
- log_debug_errno(r, "Failed to enable run queue event source, ignoring: %m");
+ /* By entering ratelimited state we made all mount start jobs not runnable, now rate limit is over so
+ * let's make sure we dispatch them in the next iteration. */
+ manager_trigger_run_queue(m);
return 0;
}