]> git.ipfire.org Git - thirdparty/systemd.git/commit
unit: check for mount rate limiting before checking active state
authorMichal Sekletar <msekleta@redhat.com>
Mon, 30 May 2022 09:55:41 +0000 (11:55 +0200)
committerMichal Sekletar <msekleta@redhat.com>
Mon, 30 May 2022 11:22:16 +0000 (13:22 +0200)
commitb161bc394b2cc8b271dda9208e310cc2af0cc29d
treeae1d249eb88aa367a74e51e3e0de3f886849b863
parentdf90d255fe274c25c54a1ccb29ed550b44adb44c
unit: check for mount rate limiting before checking active state

Having this check as part of mount_can_start() is too late because
UNIT(u)->can_start() virtual method is called after checking the active
state of unit in unit_start().

We need to hold off running mount start jobs when /p/s/mountinfo monitor
is rate limited even when given mount unit is already active.

Fixes #20329
src/core/mount.c
src/core/unit.c