mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
Revert "network: delay to configure address until it is removed on reconfigure"
This reverts commit 6e8477edd3
.
The commit intended to fix a race reported at #28009. However,
unfortunately, it does not fix the root of the race, and reveals
the race in more simple setups. See reports in #28358.
This commit is contained in:
parent
acfff02c8f
commit
16bfb12c8f
|
@ -1212,9 +1212,6 @@ static bool address_is_ready_to_configure(Link *link, const Address *address) {
|
|||
if (!link_is_ready_to_configure(link, false))
|
||||
return false;
|
||||
|
||||
if (address_is_removing(address))
|
||||
return false;
|
||||
|
||||
if (!ipv4acd_bound(address))
|
||||
return false;
|
||||
|
||||
|
|
|
@ -125,10 +125,6 @@ int network_config_state_to_string_alloc(NetworkConfigState s, char **ret);
|
|||
NETWORK_CONFIG_STATE_REMOVING, \
|
||||
NETWORK_CONFIG_STATE_REMOVING); \
|
||||
} \
|
||||
static inline bool name##_is_removing(const type *t) { \
|
||||
assert(t); \
|
||||
return FLAGS_SET(t->state, NETWORK_CONFIG_STATE_REMOVING); \
|
||||
} \
|
||||
static inline void name##_enter_removed(type *t) { \
|
||||
name##_update_state(t, \
|
||||
NETWORK_CONFIG_STATE_CONFIGURED | \
|
||||
|
|
Loading…
Reference in a new issue