From: Ian Jackson Subject: Re: [PATCH 16/29] libxl: ao: Provide manip_refcnt Date: Tue, 31 Mar 2015 19:23:45 +0100 Message-ID: <21786.58929.766833.923254@mariner.uk.xensource.com> References: <1423599016-32639-1-git-send-email-ian.jackson@eu.citrix.com> <1423599016-32639-17-git-send-email-ian.jackson@eu.citrix.com> <1427196722.21742.354.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1427196722.21742.354.camel@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: Ian Campbell Cc: xen-devel@lists.xensource.com, Euan Harris List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH 16/29] libxl: ao: Provide manip_refcnt"): > On Tue, 2015-02-10 at 20:10 +0000, Ian Jackson wrote: > > +/* > > + * A "manip" is a libxl public function manipulating this ao, which > > + * has a pointer to it. We have to not destroy it while that's the > > + * case, obviously. > > It might be nice to the reader to make a reference to the "An ao and its > gc may be accessed only with the ctx lock held." sentence in the overall > ao docs? This seems to have been documented already in May 2012 in exactly those terms, at the top of struct libxl__ao, in 738b3d442522. Am I confused ? I have added a comment about locking in the manip functions' doc comment. > [...] > > + libxl__ao__destroy(ctx,ao); > > Nit: missing space after ",". Fixed. > But other than those and including if you disagree about extending the > comment, since it's not a big deal: > Acked-by: Ian Campbell Thanks, Ian.