diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-11-17 10:50:12 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-12-08 18:08:31 +0100 |
commit | 904723f6d4eb9e3fd4146dd84e3a91a027b49932 (patch) | |
tree | 41e0b2eef23414fb05efc12640599694ea896057 | |
parent | 811f7fb15689002bc7e1b08f3462af253a4a1aa3 (diff) | |
download | systemd-904723f6d4eb9e3fd4146dd84e3a91a027b49932.tar.gz |
core/mount: mount_start() may be called during the state is MOUNT_MOUNTING_DONE
As, both MOUNT_MOUNTING and MOUNT_MOUNTING_DONE are mapped to
UNIT_ACTIVATING.
Fixes #17570.
(cherry picked from commit db39a62784e8f857a67cb4a83ade28a906f79679)
-rw-r--r-- | src/core/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 337e94e90e..782cd7334e 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -1147,7 +1147,7 @@ static int mount_start(Unit *u) { return -EAGAIN; /* Already on it! */ - if (m->state == MOUNT_MOUNTING) + if (IN_SET(m->state, MOUNT_MOUNTING, MOUNT_MOUNTING_DONE)) return 0; assert(IN_SET(m->state, MOUNT_DEAD, MOUNT_FAILED)); |