From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Jellinghaus Date: Wed, 15 Jun 2005 14:32:00 +0000 Subject: Re: usb race possible? Message-Id: <200506151632.00391.aj@leogic.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wednesday 15 June 2005 16:28, Greg KH wrote: > On Wed, Jun 15, 2005 at 03:33:40PM +0200, Andreas Jellinghaus wrote: > > On Tuesday 14 June 2005 16:22, Kay Sievers wrote: > > > That is ok, you need to wait in userspace for the files to show up. > > > It's not easy to fix in the kernel. Maybe we will get there some day... > > > > do you think "sleep 1" is good enough? > > Try it and find out :) > > > or do I need to implement a full scale > > open&retry solution? > > If you want it to always work on all machines, yes. ok thanks. but wouldn't it be better if the hotplug system did that, instead of putting the same code into every application? my app is simply called with the device path to handle, so I feel like it shouldn't do such retry stuff, but rather the caller should make sure, that the file given as argument exists... so maybe put the sleep/wait functionality into the hotplug core? Regards, Andreas -- ------------------------ [ SECURITY NOTICE ] ------------------------ To: greg@kroah.com, kay.sievers@vrfy.org, linux-hotplug-devel@lists.sourceforge.net. For your security, aj@leogic.com digitally signed this message on 15 June 2005 at 14:32:07 UTC. Verify this digital signature at http://www.ciphire.com/verify. ------------------- [ CIPHIRE DIGITAL SIGNATURE ] ------------------- Q2lwaGlyZSBTaWcuAVdncmVnQGtyb2FoLmNvbSwga2F5LnNpZXZlcnNAdnJmeS5vcmcsI GxpbnV4LWhvdHBsdWctZGV2ZWxAbGlzdHMuc291cmNlZm9yZ2UubmV0AGFqQGxlb2dpYy 5jb20AZW1haWwgYm9keQDzAgAAfAB8AAAAAQAAAOc7sELzAgAAhgMAAgACAAIAIIdrK0I L8jXIl9JZRO4QIw3DBoaepRzC9+dTc0eONcPhAQBDO3Bq3LM8hPJ4BlNeKI9mlfaCyWW9 V5vOkBAcDyr7MTyEa3i17zyCBA6wCMcBhyJ2c5ttUQJl962knNoRGPhjzwgBU2lnRW5k --------------------- [ END DIGITAL SIGNATURE ] --------------------- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ 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