From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: Ian Campbell <Ian.Campbell@citrix.com>,
dgdegra@tycho.nsa.gov, matthew.fioravante@jhuapl.edu
Cc: "Keir (Xen.org)" <keir@xen.org>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [minios] Add xenbus shutdown control support
Date: Tue, 4 Dec 2012 10:40:12 +0100 [thread overview]
Message-ID: <20121204094012.GF5906@type.bordeaux.inria.fr> (raw)
In-Reply-To: <1354613565.2693.54.camel@zakaz.uk.xensource.com>
Ian Campbell, le Tue 04 Dec 2012 09:32:45 +0000, a écrit :
> On Tue, 2012-12-04 at 00:30 +0000, Samuel Thibault wrote:
> > Ian Campbell, le Thu 29 Nov 2012 11:14:19 +0000, a écrit :
> > > On Wed, 2012-11-28 at 21:57 +0000, Samuel Thibault wrote:
> > > > Add a thread watching the xenbus shutdown control path and notifies a
> > > > wait queue.
> > >
> > > Why a wait queue rather than a weak function call?
> >
> > Because it integrates well with existing wait loops.
>
> I was imagining that someone using such a wait loop would simply provide
> the weak function to kick the queue themselves,
Ah, right, in that case it doesn't need much synchronization with the
shutdown event, so it doesn't pose problem.
> rather than imposing this design on them from the core. It's not a big
> deal though.
But it's nicer to get it the way people would prefer. Daniel, Matthew,
what do you think?
Samuel
prev parent reply other threads:[~2012-12-04 9:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-28 21:57 [minios] Add xenbus shutdown control support Samuel Thibault
2012-11-29 11:14 ` Ian Campbell
2012-12-04 0:30 ` Samuel Thibault
2012-12-04 9:32 ` Ian Campbell
2012-12-04 9:40 ` Samuel Thibault [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=20121204094012.GF5906@type.bordeaux.inria.fr \
--to=samuel.thibault@ens-lyon.org \
--cc=Ian.Campbell@citrix.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=keir@xen.org \
--cc=matthew.fioravante@jhuapl.edu \
--cc=xen-devel@lists.xen.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).