From: Ian Campbell Subject: Re: netback Oops then xenwatch stuck in D state Date: Thu, 14 Feb 2013 11:34:23 +0000 Message-ID: <1360841663.20449.345.camel@zakaz.uk.xensource.com> References: <510C3AA3.2090508@theshore.net> <50E3A390-C52B-476A-8B20-BADBA42F3775@theshore.net> <51181924.4050500@theshore.net> <1360583103.16636.29.camel@zion.uk.xensource.com> <1360663133.20449.123.camel@zakaz.uk.xensource.com> <511AFFC9.3050404@theshore.net> <1360779868.16636.92.camel@zion.uk.xensource.com> <1360780669.16636.94.camel@zion.uk.xensource.com> <511BE780.9000707@cantab.net> <20130213201725.GA1453@zion.uk.xensource.com> <511CB86702000078000BE1C5@nat28.tlf.novell.com> <1360840843.16636.109.camel@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1360840843.16636.109.camel@zion.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: Wei Liu Cc: David Vrabel , Jan Beulich , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2013-02-14 at 11:20 +0000, Wei Liu wrote: > I'm not convinced. netbk_tx_err only has one xenvif_put, however > netbk_fatal_tx_err has two puts. One balances the get in poll_net_schedule_list (i.e. at the top of the loop in xen_netbk_tx_build_gops. The other one I guess you mean the one in xenvif_carrier_off? This balances the refcount taken in xenvif_connect, when the carrier is brought up. In my testing I found that both were required or else things deadlock in xenvif_disconnect with the refcnt stuck at 1. The eventual put in xenvif_disconnect is balanced by the initial count of 1 in xenvif_alloc() Ian. > If this is a bug, and, if my previous patch fixes Christopher's OOPS, he > will hit this bug soon when shutting down DomU. > > > Wei. >