From: =?ISO-8859-1?Q?J=FCrg?= Billeter Date: Sun, 26 Mar 2006 21:05:53 +0000 Subject: Re: [REPOST] uevent leak Message-Id: <1143407153.4003.27.camel@juerg-pd.bitron.ch> List-Id: References: <442616D1.4020707@ums.usu.ru> In-Reply-To: <442616D1.4020707@ums.usu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Son, 2006-03-26 at 23:46 +0400, Sergey Vlasov wrote: > On Sun, 26 Mar 2006 10:21:37 +0600 Alexander E. Patrakov wrote: >=20 > > The theory (well, not theory, just an unconfirmed guess) behind this=20 > > bugreport, so far, is that udevd responds to uevents very quickly, fast= er=20 > > than the kernel can deliver them from the netlink socket buffer. This l= eads=20 > > to some moments when the queue is actually empty, and the loop exits=20 > > prematurely. >=20 > Yes, the check for empty udev queue seems to be unreliable. >=20 > One way to make this reliable could be to trigger some kind of "sync" > event after all other events from udevtrigger, catch that event in an > udev rule and do something to notify the script (e.g., remove some > file). There is a problem, however: udevd can process events out of > order if their DEVPATH values do not overlap (see running_with_devpath() > in udevd.c), so the device for that event has to be really special. Another problem is that RUN rules may trigger secondary events which very probably get executed after that special event. If /sys/kernel/uevent_seqnum is always up-to-date, it might be possible to compare that file with the seqnum last processed by udev, not sure, if this works, though. J=C3=BCrg ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd________________________________________= _______ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel