From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarek Poplawski Subject: Re: [PATCH take 2] pkt_sched: Fix qdisc_watchdog() vs. dev_deactivate() race Date: Thu, 11 Sep 2008 12:34:07 +0000 Message-ID: <20080911123406.GC5765@ff.dom.local> References: <20080821.005250.117238212.davem@davemloft.net> <20080911.033956.233317469.davem@davemloft.net> <20080911104531.GA21913@gondor.apana.org.au> <20080911.034955.111797743.davem@davemloft.net> <20080911110035.GA22065@gondor.apana.org.au> <20080911115132.GA5765@ff.dom.local> <20080911115449.GA22860@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: David Miller , netdev@vger.kernel.org To: Herbert Xu Return-path: Received: from fg-out-1718.google.com ([72.14.220.155]:58747 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755347AbYIKMeQ (ORCPT ); Thu, 11 Sep 2008 08:34:16 -0400 Received: by fg-out-1718.google.com with SMTP id 19so209078fgg.17 for ; Thu, 11 Sep 2008 05:34:15 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20080911115449.GA22860@gondor.apana.org.au> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Sep 11, 2008 at 09:54:49PM +1000, Herbert Xu wrote: > On Thu, Sep 11, 2008 at 11:51:32AM +0000, Jarek Poplawski wrote: > > > > IMHO, the most reasonable test here is for all tx_queues of a qdisc > > beeing stopped, but since this is quite heavy, probably we need an > > additional qdisc flag for such an occasion. ... > So I don't think there's anything inherently advantageous in > checking all the queues. BTW, I hope I wasn't misunderstood here. I don't mean any additional checking of all the queues anywhere. It's only about setting such a flag at the end of netif_stop_all_queues() and netif_stop_queue(). Jarek P.