On Tue, 2015-03-31 at 20:00 +0100, Ian Jackson wrote:
> Previously we used in_initiator to stop the ao being freed while we
> were still in the initiator function (which would result in the
> initiator's call to lixl__ao_inprogress accessing the ao after it had
> been freed).
> 
> We are going to introduce a new libxl entrypoint which finds, and
> operates on, ongoing aos.  This function needs the same protection,
> and might even end up running on the same ao multiple times
> concurrently.
> 
> So do this with reference counting instead, with a new variable
> ao->manip_refcnt.
> 
> We keep ao->in_initiator because that allows us to keep some useful
> asserts about the sequencing of libxl__ao_inprogress, etc.
> 
> Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>

Acked-by: Ian Campbell <ian.campb...@citrix.com>



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to