From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758696AbYDOHt2 (ORCPT ); Tue, 15 Apr 2008 03:49:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752984AbYDOHtR (ORCPT ); Tue, 15 Apr 2008 03:49:17 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:51375 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752390AbYDOHtR (ORCPT ); Tue, 15 Apr 2008 03:49:17 -0400 Date: Tue, 15 Apr 2008 00:49:18 -0700 (PDT) Message-Id: <20080415.004918.91296536.davem@davemloft.net> To: michael@ellerman.id.au Cc: netdev@vger.kernel.org, satyam@infradead.org, mpm@selenic.com, linux-kernel@vger.kernel.org, k-keiichi@bx.jp.nec.com Subject: Re: [PATCH] netconsole: only set CON_PRINTBUFFER if the user specifies a netconsole From: David Miller In-Reply-To: References: X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Ellerman Date: Tue, 15 Apr 2008 17:43:12 +1000 (EST) > Since 0bcc1816188e570bde1d56a208996660f2633ae0 (netconsole: Support > dynamic reconfiguration using configfs), the netconsole is always > registered, regardless of whether the user actually specified a > netconsole configuration on the command line. > > However because netconsole has CON_PRINTBUFFER set, when it is > registered it causes the printk buffer to be replayed to all consoles. > When there is no netconsole configured this is a) pointless, and b) > somewhat annoying for the user of the existing console. > > So instead we should only set CON_PRINTBUFFER if there is a netconsole > configuration found on the command line. This retains the existing > behaviour if a netconsole is setup by the user, and avoids spamming > other consoles when we're only registering for the dynamic > netconsole case. > > Signed-off-by: Michael Ellerman That's a regression, so applied to net-2.6, thanks Michael.