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.
This commit is contained in:
Yu Watanabe 2020-11-17 10:50:12 +09:00 committed by Lennart Poettering
parent 428a9f6f1d
commit db39a62784
1 changed files with 1 additions and 1 deletions

View File

@ -1144,7 +1144,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));