Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264104AbTFQHF6 (ORCPT ); Tue, 17 Jun 2003 03:05:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264105AbTFQHF5 (ORCPT ); Tue, 17 Jun 2003 03:05:57 -0400 Received: from pao-ex01.pao.digeo.com ([12.47.58.20]:40685 "EHLO pao-ex01.pao.digeo.com") by vger.kernel.org with ESMTP id S264104AbTFQHF5 (ORCPT ); Tue, 17 Jun 2003 03:05:57 -0400 Date: Tue, 17 Jun 2003 00:20:27 -0700 From: Andrew Morton To: Andi Kleen Cc: davem@redhat.com, ak@suse.de, janiceg@us.ibm.com, linux-kernel@vger.kernel.org, netdev@oss.sgi.com, stekloff@us.ibm.com, girouard@us.ibm.com, lkessler@us.ibm.com, kenistonj@us.ibm.com, jgarzik@pobox.com Subject: Re: patch for common networking error messages Message-Id: <20030617002027.00c96c7a.akpm@digeo.com> In-Reply-To: <20030617070957.GB2752@wotan.suse.de> References: <3EEE28DE.6040808@us.ibm.com> <20030616.133841.35533284.davem@redhat.com> <20030616205342.GH30400@wotan.suse.de> <20030616.135124.71580008.davem@redhat.com> <20030616152707.58da808c.akpm@digeo.com> <20030617070957.GB2752@wotan.suse.de> X-Mailer: Sylpheed version 0.9.0pre1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Jun 2003 07:19:51.0246 (UTC) FILETIME=[D7900EE0:01C334A0] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 921 Lines: 22 Andi Kleen wrote: > > > Actually it already does, to cover the case where an interrupt handler calls > > printk while process-context code is performing a printk. > > I don't think it'll work. Both printk and release_console_sem take the logbuf_lock, > which will deadlock if the same CPU already holds it. Look more closely. logbuf_lock is only held to protect the logbuf contents and its indices. And to pin down the current console_sem holder to reliably ensure that he'll print the text which the nested printer just placed in the buffer. We do not call the console drivers while holding logbuf_lock. console_sem is held across the console driver call. - 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/