diff options
author | Michal Sekletar <msekleta@redhat.com> | 2021-10-04 19:41:34 +0200 |
---|---|---|
committer | Michal Sekletar <msekleta@redhat.com> | 2021-11-11 17:04:39 +0100 |
commit | a7c93dfe91e88a5a561341c523a45c7f8d71a588 (patch) | |
tree | 1c2e0feefb5ba22aa927f7b5f275bf061e9d8a48 /src | |
parent | 705578c3b9d794097233aa66010cf67b2a444716 (diff) | |
download | systemd-a7c93dfe91e88a5a561341c523a45c7f8d71a588.tar.gz |
mount: make mount units start jobs not runnable if /p/s/mountinfo ratelimit is in effect
Diffstat (limited to 'src')
-rw-r--r-- | src/core/mount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 2ebae752b6..88a670dc2a 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -2141,6 +2141,9 @@ static int mount_can_start(Unit *u) { assert(m); + if (sd_event_source_is_ratelimited(u->manager->mount_event_source)) + return -EAGAIN; + r = unit_test_start_limit(u); if (r < 0) { mount_enter_dead(m, MOUNT_FAILURE_START_LIMIT_HIT); |