From: Ian Campbell Subject: Re: [PATCH 19/22] libxl: suspend: Abolish usleeps in domain suspend wait Date: Mon, 17 Mar 2014 13:39:44 +0000 Message-ID: <1395063584.18221.20.camel@kazak.uk.xensource.com> References: <1395063006-6671-1-git-send-email-ian.jackson@eu.citrix.com> <1395063006-6671-20-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1395063006-6671-20-git-send-email-ian.jackson@eu.citrix.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 Mon, 2014-03-17 at 13:30 +0000, Ian Jackson wrote: > Replace the use of a loop with usleep(). > > Instead, use a xenstore watch and an event system timeout. (xenstore > fires watches on @releaseDomain when a domain shuts down.) > > The logic which checks for the state of the domain is unchanged, and > not ideal, but we will leave that for the next patch. > > There is not intended to be any semantic change, other than to make > the algorithm properly asynchronous and the consequential waiting be > on xenstore, rather than polling. > > Signed-off-by: Ian Jackson > CC: Stefano Stabellini Acked-by: Ian Campbell