From: Dave Hansen <haveblue@us.ibm.com>
To: linux-hotplug@vger.kernel.org
Subject: file creation timing
Date: Wed, 02 Feb 2005 20:53:52 +0000 [thread overview]
Message-ID: <1107377633.5540.95.camel@localhost> (raw)
For memory hotplug, I register each of my memory kobjects, followed by
their individual files. I'm seeing races where the hotplug scripts get
the event for the main register before all of the control files are
there.
ret = register_memory(mem, section, NULL);
mem_create_simple_file(mem, phys_index);
mem_create_simple_file(mem, state);
mem_create_simple_file(mem, phys_device);
The script sees the /sys/.../memory directory before it sees the "state"
file. Is there a handy way around this other than sleeping in the
script? Can I somehow delay that registration event?
-- Dave
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
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
next reply other threads:[~2005-02-02 20:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-02 20:53 Dave Hansen [this message]
2005-02-02 21:13 ` file creation timing Kay Sievers
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=1107377633.5540.95.camel@localhost \
--to=haveblue@us.ibm.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).