From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Fri, 16 Dec 2011 17:53:25 +0000 Subject: Re: [PATCH 1/1] udevd: process events with timeliness requirements Message-Id: <20111216175325.GA5341@kroah.com> List-Id: References: <1324056944-4777-1-git-send-email-apw@canonical.com> In-Reply-To: <1324056944-4777-1-git-send-email-apw@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Dec 16, 2011 at 05:35:44PM +0000, Andy Whitcroft wrote: > diff --git a/udev/udevd.c b/udev/udevd.c > index 05d4b2d..19f7128 100644 > --- a/udev/udevd.c > +++ b/udev/udevd.c > @@ -584,7 +584,7 @@ static void event_queue_start(struct udev *udev) > } > } > > -static void event_queue_cleanup(struct udev *udev, enum event_state match_type) > +static void __event_queue_cleanup(struct udev *udev, enum event_state match_type, bool keep_timely) > { > struct udev_list_node *loop, *tmp; > > @@ -594,10 +594,25 @@ static void event_queue_cleanup(struct udev *udev, enum event_state match_type) > if (match_type != EVENT_UNDEF && match_type != event->state) > continue; > > + /* Keep events which have timelyness requirements > + * we will skew these timeouts on coldplug. */ > + if (keep_timely && udev_device_get_timeout(event->dev) > 0) > + continue; > + Your patch is totally corrupted :(