From: Ian Jackson Subject: Re: [PATCH 10/29] libxl: events: Make timeout and async exec setup take an ao, not a gc Date: Tue, 31 Mar 2015 19:09:09 +0100 Message-ID: <21786.58053.512204.436066@mariner.uk.xensource.com> References: <1423599016-32639-1-git-send-email-ian.jackson@eu.citrix.com> <1423599016-32639-11-git-send-email-ian.jackson@eu.citrix.com> <54DAAAAB.5040109@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54DAAAAB.5040109@cn.fujitsu.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: Wen Congyang Cc: xen-devel@lists.xensource.com, Euan Harris , Lai Jiangshan , Yang Hongyang List-Id: xen-devel@lists.xenproject.org Wen Congyang writes ("Re: [PATCH 10/29] libxl: events: Make timeout and async exec setup take an ao, not a gc"): > On 02/11/2015 04:09 AM, Ian Jackson wrote: > > Change the timeout setup functions to take a libxl__ao, not a > > libxl__gc. This is going to be needed for ao cancellation, because > > timeouts are going to be a main hook for ao cancellation - so the > > timeouts need to be associated with an ao. > > > > This means that timeouts can only occur as part of a long-running > > libxl function (but this is of course correct, as libxl shouldn't have > > any global timeouts, and indeed all the call sites have an ao). > > > > Also remove the gc parameter from libxl__async_exec_start. It can > > just use the gc from the ao supplied in the aes. > > Signed-off-by: Ian Jackson > > CC: Yang Hongyang > > CC: Wen Congyang > > CC: Lai Jiangshan > > libxl__async_exec_start() related modifications look fine to me. Thanks for the review. I'll take that as ack, if you don't object. Regards, Ian.