Merge pull request #32085 from yuwata/udev-check-processing

udev: check ID_PROCESSING udev property more
This commit is contained in:
Luca Boccassi
2024-04-04 23:46:26 +01:00
committed by GitHub
9 changed files with 40 additions and 22 deletions
+2 -10
View File
@@ -1630,9 +1630,9 @@ static int link_check_initialized(Link *link) {
return 0;
}
r = sd_device_get_is_initialized(device);
r = device_is_processed(device);
if (r < 0)
return log_link_warning_errno(link, r, "Could not determine whether the device is initialized: %m");
return log_link_warning_errno(link, r, "Could not determine whether the device is processed by udevd: %m");
if (r == 0) {
/* not yet ready */
log_link_debug(link, "link pending udev initialization...");
@@ -1647,14 +1647,6 @@ static int link_check_initialized(Link *link) {
return 0;
}
r = device_is_processing(device);
if (r < 0)
return log_link_warning_errno(link, r, "Failed to determine whether the device is being processed: %m");
if (r > 0) {
log_link_debug(link, "Interface is being processed by udevd, pending initialization.");
return 0;
}
return link_initialized(link, device);
}