From: Yu Watanabe Date: Tue, 17 Nov 2020 01:50:12 +0000 (+0900) Subject: core/mount: mount_start() may be called during the state is MOUNT_MOUNTING_DONE X-Git-Tag: v247~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db39a62784e8f857a67cb4a83ade28a906f79679;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/core/mount.c b/src/core/mount.c index 41dc7e99674..faa2cb0e039 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -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));