Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754472AbYAWRHW (ORCPT ); Wed, 23 Jan 2008 12:07:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752774AbYAWRHI (ORCPT ); Wed, 23 Jan 2008 12:07:08 -0500 Received: from gateway-1237.mvista.com ([63.81.120.158]:33801 "EHLO gateway-1237.mvista.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752757AbYAWRHG (ORCPT ); Wed, 23 Jan 2008 12:07:06 -0500 Subject: Re: [PATCH 01/20 -v5] printk - dont wakeup klogd with interrupts disabled From: Daniel Walker To: Steven Rostedt Cc: LKML , Ingo Molnar , Linus Torvalds , Andrew Morton , Peter Zijlstra , Christoph Hellwig , Mathieu Desnoyers , Gregory Haskins , Arnaldo Carvalho de Melo , Thomas Gleixner , Tim Bird , Sam Ravnborg , "Frank Ch. Eigler" , Jan Kiszka , John Stultz , Arjan van de Ven , Steven Rostedt In-Reply-To: <20080123160441.236562634@goodmis.org> References: <20080123160236.969334052@goodmis.org> <20080123160441.236562634@goodmis.org> Content-Type: text/plain Date: Wed, 23 Jan 2008 09:06:18 -0800 Message-Id: <1201107978.13596.16.camel@imap.mvista.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 (2.12.2-3.fc8) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 833 Lines: 23 On Wed, 2008-01-23 at 11:02 -0500, Steven Rostedt wrote: > + if (!irqs_disabled() && wake_klogd) > wake_up_klogd(); This causes a regression .. When printk is called during an OOPS in kernels without this change then the OOPS will get logged, since the logging process (klogd) is woken to handle the messages.. If you apply this change klogd doesn't wakeup, and hence doesn't log the oops.. So if you remove the wakeup here you have to add it someplace else to maintain the logging .. (I'm not theorizing here, I have defects logged against this specific piece of code..) Daniel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/