From: Ian Jackson Subject: Re: [PATCH v5 04/10] libxl: convert libxl_device_disk_add to an asyn op Date: Thu, 7 Jun 2012 15:20:18 +0100 Message-ID: <20432.47266.847506.330124@mariner.uk.xensource.com> References: <1338383275-21315-1-git-send-email-roger.pau@citrix.com> <1338383275-21315-5-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1338383275-21315-5-git-send-email-roger.pau@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 ("[PATCH v5 04/10] libxl: convert libxl_device_disk_add to an asyn op"): > This patch converts libxl_device_disk_add to an ao operation that > waits for device backend to reach state XenbusStateInitWait and then > marks the operation as completed. This is not really useful now, but > will be used by latter patches that will launch hotplug scripts after > we reached the desired xenbus state. Just spotted: > +void libxl__initiate_device_add(libxl__egc *egc, libxl__ao_device *aodev) > +{ ... > + libxl__ev_devstate_init(&aodev->ds); > + rc = libxl__ev_devstate_wait(gc, &aodev->ds, device_backend_callback, > + state_path, XenbusStateInitWait, > + LIBXL_INIT_TIMEOUT * 1000); Another unneeded _init. I won't comment on any more of these I find. Ian.