From 2500dbc810d8898c1359c6579715586fffa08a27 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 24 Apr 2014 15:40:08 -0400 Subject: udev: remove seqnum API and all assumptions about seqnums The way the kernel namespaces have been implemented breaks assumptions udev made regarding uevent sequence numbers. Creating devices in a namespace "steals" uevents and its sequence numbers from the host. It confuses the "udevadmin settle" logic, which might block until util a timeout is reached, even when no uevent is pending. Remove any assumptions about sequence numbers and deprecate libudev's API exposing these numbers; none of that can reliably be used anymore when namespaces are involved. Signed-off-by: Anthony G. Basile --- src/udev/udev-util.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/udev/udev-util.h') diff --git a/src/udev/udev-util.h b/src/udev/udev-util.h index 40f8b776ce..5f09ce181f 100644 --- a/src/udev/udev-util.h +++ b/src/udev/udev-util.h @@ -31,7 +31,6 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_event*, udev_event_unref); DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_rules*, udev_rules_unref); DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_ctrl*, udev_ctrl_unref); DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_monitor*, udev_monitor_unref); -DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_queue*, udev_queue_unref); #define _cleanup_udev_unref_ _cleanup_(udev_unrefp) #define _cleanup_udev_device_unref_ _cleanup_(udev_device_unrefp) @@ -40,5 +39,4 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_queue*, udev_queue_unref); #define _cleanup_udev_rules_unref_ _cleanup_(udev_rules_unrefp) #define _cleanup_udev_ctrl_unref_ _cleanup_(udev_ctrl_unrefp) #define _cleanup_udev_monitor_unref_ _cleanup_(udev_monitor_unrefp) -#define _cleanup_udev_queue_unref_ _cleanup_(udev_queue_unrefp) #define _cleanup_udev_list_cleanup_ _cleanup_(udev_list_cleanup) -- cgit v1.2.3-54-g00ecf