From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: usb race possible?
Date: Wed, 15 Jun 2005 22:04:50 +0000 [thread overview]
Message-ID: <20050615220450.GA620@kroah.com> (raw)
In-Reply-To: <pan.2005.06.14.13.35.59.94445@leogic.com>
On Wed, Jun 15, 2005 at 04:32:00PM +0200, Andreas Jellinghaus wrote:
> 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?
We used to have code that did that, look at the old udev releases.
"wait_for_sysfs" was what it was called. Turned out that just putting
that logic into udev was easier :)
So, just put yourself into /etc/dev.d/ or in a udev rule and you should
be fine and not have to do the hotplug wait logic.
hope this helps,
greg k-h
-------------------------------------------------------
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
prev parent reply other threads:[~2005-06-15 22:04 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
2005-06-15 22:04 ` Greg KH [this message]
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=20050615220450.GA620@kroah.com \
--to=greg@kroah.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).