From: Wei Liu Subject: Re: netback Oops then xenwatch stuck in D state Date: Thu, 14 Feb 2013 12:40:05 +0000 Message-ID: <1360845605.16636.128.camel@zion.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> <511CDD2202000078000BE2F3@nat28.tlf.novell.com> <1360843993.16636.118.camel@zion.uk.xensource.com> <511CE7B902000078000BE35B@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <511CE7B902000078000BE35B@nat28.tlf.novell.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: Jan Beulich Cc: David Vrabel , wei.liu2@citrix.com, Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2013-02-14 at 12:33 +0000, Jan Beulich wrote: > >>> On 14.02.13 at 13:13, Wei Liu wrote: > > On Thu, 2013-02-14 at 11:48 +0000, Jan Beulich wrote: > >> I don't think this patch will fix his problems, which - as described > >> yesterday - I'm relatively certain result from the harsh action > >> netbk_fatal_tx_err() does. > > > > Yes, having this one only is not enough. It will need to either disable > > the vif timer or check vif->netbk != NULL inside timer callback. > > I continue to be unclear what timer you refer to. > Oh, it is the tx credit timer callback, which will try to schedule vif regardless of whether it is linked to netbk or not. See tx_credit_callback. It is also the root cause of Christopher's latest oops report last night, when he `ifconfig vifX.X down` in Dom0. > If we keep the carrier-off in fatal_tx_err, then _all_ > asynchronously callable interfaces need to check whether the > vif -> netbk association went away. But, especially in the > context of using tasklets instead of kthreads, I meanwhile > think that simply setting a flag (along with turning off the IRQ) > would be better (and keep the turning off of the carrier the way > it had been done before. The flag would basically need checking > anywhere we look at the shared ring (which ought to be very > few places), and perhaps should also cause xenvif_schedulable() > to return false. > Is this equivalent to checking vif->netbk? Well, at least in practice. Wei. > Jan >