From: Samuel Thibault Subject: Re: Double gnttab_end_access in mini-os netfront Date: Tue, 8 Dec 2015 13:00:31 +0100 Message-ID: <20151208120031.GC2916@var.bordeaux.inria.fr> References: <20151206021957.GB15506@mail-itl> <1449574429.16124.56.camel@citrix.com> <20151208114631.GM960@mail-itl> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20151208114631.GM960@mail-itl> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Marek =?iso-8859-1?Q?Marczykowski-G=F3recki?= Cc: minios-devel@lists.xenproject.org, Martin Lucina , Ian Campbell , xen-devel List-Id: xen-devel@lists.xenproject.org Marek Marczykowski-G=F3recki, on Tue 08 Dec 2015 12:46:31 +0100, wrote: > > > http://xenbits.xen.org/gitweb/?p=3Dmini-os.git;a=3Dcommit;h=3D7c8f348= 390652a67e > > > 9356eec9cd2b0f76a9c7c72 > > > = > > > With that commit reverted, issue vanishes. > > > = > > > I guess it's because before this commit, there was "if (rx->status = =3D=3D > > > NETIF_RSP_NULL) continue" before "gnttab_end_access(buf->gref)", but = now > > > that case is handled after gnttab_end_access (using "if (rx->status > > > > NETIF_RSP_NULL)"). I think the fix would be to restore that "continue" > > > line. > > = > > That sounds pretty plausible to me (FWIW). Have you tried it? > = > I've tried moving gnttab_end_access into that if branch. And it didn't > worked. Which if branch? Please show the code, C is less ambiguous than english :) Samuel