From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2 for-4.6 3/3] tools/libxl: Only continue stream operations if the stream is still in progress Date: Wed, 29 Jul 2015 15:17:58 +0100 Message-ID: <1438179478.11600.200.camel@citrix.com> References: <1438015647-25377-1-git-send-email-andrew.cooper3@citrix.com> <1438015647-25377-4-git-send-email-andrew.cooper3@citrix.com> <21943.34423.586101.713988@mariner.uk.xensource.com> <55B78A21.3070402@citrix.com> <21943.39885.704950.477219@mariner.uk.xensource.com> <55B79DEA.2040801@citrix.com> <21943.42696.836949.936143@mariner.uk.xensource.com> <55B7B362.8010109@citrix.com> <21943.46826.346039.513944@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21943.46826.346039.513944@mariner.uk.xensource.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 Jackson , Andrew Cooper Cc: Wei Liu , Xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, 2015-07-28 at 18:07 +0100, Ian Jackson wrote: > Andrew Cooper writes ("Re: [PATCH v2 for-4.6 3/3] tools/libxl: Only > continue stream operations if the stream is still in progress"): > > check_all_finished() must only ever be called once for each started > > task. Having > > > > if ( inuse ) > > continue() > > else > > check_all_finished() > > > > will make it far more likely to accidentally fire the overall stream > > callback twice. > > I think extra calls to check_all_finished are harmless. > > But anyway, I can see that this conversation isn't really converging. > I think there is no functional difference between the two approaches > we are debating. So this comes down to a matter of taste. > > I don't want to put my foot down as maintainer, especially since you > wrote most of this code. So, I think the bikeshed might as well be > your favoured shade of orange: > > Acked-by: Ian Jackson This is an ack to the patch in < 1438015647-25377-4-git-send-email-andrew.cooper3@citrix.com> i.e. the original 3/3 of this posting, right? (and not, for example, an ack to some other proposal made during this thread) Ian.