From: Ian Jackson Subject: Re: [PATCH v9 08/17] libxl: convert libxl_device_disk_add to an async op Date: Fri, 20 Jul 2012 11:43:26 +0100 Message-ID: <20489.13902.375013.358892@mariner.uk.xensource.com> References: <1342172696-88347-1-git-send-email-roger.pau@citrix.com> <1342172696-88347-9-git-send-email-roger.pau@citrix.com> <20488.11968.333845.24701@mariner.uk.xensource.com> <50083268.5020005@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <50083268.5020005@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: Roger Pau Monne Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("Re: [PATCH v9 08/17] libxl: convert libxl_device_disk_add to an async op"): > Ian Jackson wrote: > > This comment seems to be wrong ? We set the callback > > to device_backend_callback but perhaps that calls aodev->callback ? > > Yes, device_backend_callback is the callback for the devstate event, but > not the callback for the global aodev operation, which is stored in > aodev->callback. I think the caller doesn't need to know that internally > we set another callback, for the devstate event, since what matters is > that aodev->callback will be called when the operation is finished. Right, OK. > >> @@ -1808,6 +1829,8 @@ struct libxl__ao_devices { > >> * The libxl__ao_device passed to this function should be > >> * prepared using libxl__prepare_ao_device prior to calling > >> * this function. > >> + * > >> + * Once finished, aodev->callback will be executed. > >> */ > >> _hidden void libxl__initiate_device_remove(libxl__egc *egc, > >> libxl__ao_device *aodev); > >> @@ -2162,6 +2185,19 @@ _hidden void libxl__destroy_domid(libxl__egc *egc, > > > > Is this hunk in the wrong patch ? > > Yes, it is. Right, apart from that last thing, then: Acked-by: Ian Jackson