[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [minios] Add xenbus shutdown control support



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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.