From: Ian Campbell Subject: Re: [PATCH 16/19] libxl: suspend: Abolish usleeps in domain suspend wait Date: Fri, 14 Mar 2014 17:39:56 +0000 Message-ID: <1394818796.6065.27.camel@kazak.uk.xensource.com> References: <1393945016-1417-1-git-send-email-ian.jackson@eu.citrix.com> <1393945016-1417-17-git-send-email-ian.jackson@eu.citrix.com> <1394730989.16364.29.camel@kazak.uk.xensource.com> <21281.63755.904249.422991@mariner.uk.xensource.com> <1394791838.16364.82.camel@kazak.uk.xensource.com> <21283.15406.21986.273382@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21283.15406.21986.273382@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Shriram Rajagopalan , xen-devel@lists.xensource.com, Lai Jiangshan , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 2014-03-14 at 17:28 +0000, Ian Jackson wrote: > Ian Campbell writes ("Re: [PATCH 16/19] libxl: suspend: Abolish usleeps in domain suspend wait"): > > On Thu, 2014-03-13 at 18:29 +0000, Ian Jackson wrote: > > > I guess we could special-case paths starting with "@", the way > > > xenstore does, and always return ENOENT. > > > > I wonder what xs_read on @releaseDomain actually does -- I'd not be > > surprised if it was ENOENT. I wonder even more what xs_write on > > @releaseDomain would do, hopefully "bugger off" but you never know. > > Reading xenstored_core.c suggests both read and write give EINVAL. So > making xswait work for it would indeed involve special-casing @ in > libxl. Right. > > > I'm not sure whether this > > > wrinkle (which would end up in the docs for the general facility) is > > > worth the saving in the one call site where it would be relevant. > > > > I'm not sure either, I'll leave it to your best judgement. If you want > > to stick with this variant then: > > Acked-by: Ian Campbell > > I think it's probably best but I don't know if that's just inertia... Well, it's not like we'd be stuck with it if we change our minds later. Ian.