From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] netconsole: fix BUG during net device "upping" Date: Mon, 23 Mar 2009 01:15:08 -0700 (PDT) Message-ID: <20090323.011508.140910146.davem@davemloft.net> References: <20090323080455.GA4976@ff.dom.local> <20090323.010541.94308473.davem@davemloft.net> <20090323081158.GB4976@ff.dom.local> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: mpm@selenic.com, marcin.slusarz@gmail.com, netdev@vger.kernel.org, k-keiichi@bx.jp.nec.com, stable@kernel.org, rjw@sisk.pl, linux-kernel@vger.kernel.org To: jarkao2@gmail.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:51904 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1756606AbZCWIPV (ORCPT ); Mon, 23 Mar 2009 04:15:21 -0400 In-Reply-To: <20090323081158.GB4976@ff.dom.local> Sender: netdev-owner@vger.kernel.org List-ID: From: Jarek Poplawski Date: Mon, 23 Mar 2009 08:11:58 +0000 > On Mon, Mar 23, 2009 at 01:05:41AM -0700, David Miller wrote: > > From: Jarek Poplawski > > Date: Mon, 23 Mar 2009 08:04:55 +0000 > > > > > What is the rationale of this decision? printk is a basic tool, > > > especially designed to work in as many places as possible, and > > > netconsole is rather something secondary (sorry Matt)?! > > > > And this basic tool cannot work from the drivers ->open() method. > > And in any function used in the drivers ->open(). BTW, with Marcin's > patch it can... This issue came up before, and after we added the netif_running() check we hit this IIF_UP one and at the time we looked into it and the result we came up with is that you just can't do it in a network driver's ->open() Look up the thread, I'm too lazy...