mirror of
https://github.com/systemd/systemd.git
synced 2025-01-16 03:24:49 +03:00
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:
parent
428a9f6f1d
commit
db39a62784
@ -1144,7 +1144,7 @@ static int mount_start(Unit *u) {
|
|||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
|
|
||||||
/* Already on it! */
|
/* Already on it! */
|
||||||
if (m->state == MOUNT_MOUNTING)
|
if (IN_SET(m->state, MOUNT_MOUNTING, MOUNT_MOUNTING_DONE))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
assert(IN_SET(m->state, MOUNT_DEAD, MOUNT_FAILED));
|
assert(IN_SET(m->state, MOUNT_DEAD, MOUNT_FAILED));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user