From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Hanquez Subject: Re: [PATCH] libxl: make libxl_wait_for_device_model not racy Date: Wed, 23 Jun 2010 12:25:44 +0100 Message-ID: <4C21EF38.10504@eu.citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 23/06/10 12:15, Stefano Stabellini wrote: > Hi all, > at the moment libxl_wait_for_device_model waits on a xenstore watch > before checking the current value of the xenstore node, that might > contain already the value the function was looking for. > This patch changes libxl_wait_for_device_model so that it checks the > value of the xenstore node first, then waits for the watch. > > Signed-off-by: Stefano Stabellini > xenstore watch automatically fire one time when you install them for this exact same purpose. Is this patch actually solving any issue you saw ? -- Vincent