linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Jellinghaus <aj@leogic.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: usb race possible?
Date: Wed, 15 Jun 2005 14:32:00 +0000	[thread overview]
Message-ID: <200506151632.00391.aj@leogic.com> (raw)
In-Reply-To: <pan.2005.06.14.13.35.59.94445@leogic.com>

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.

<evil question>
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?
</evil>

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_id\x16492&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

  parent reply	other threads:[~2005-06-15 14:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-14 13:35 usb race possible? Andreas Jellinghaus
2005-06-14 14:22 ` Kay Sievers
2005-06-15 13:33 ` Andreas Jellinghaus
2005-06-15 14:28 ` Greg KH
2005-06-15 14:32 ` Andreas Jellinghaus [this message]
2005-06-15 22:04 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200506151632.00391.aj@leogic.com \
    --to=aj@leogic.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).