Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 8 Apr 2002 19:40:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 8 Apr 2002 19:40:52 -0400 Received: from vasquez.zip.com.au ([203.12.97.41]:22278 "EHLO vasquez.zip.com.au") by vger.kernel.org with ESMTP id ; Mon, 8 Apr 2002 19:40:52 -0400 Message-ID: <3CB21BFC.B3BFDACF@zip.com.au> Date: Mon, 08 Apr 2002 15:38:52 -0700 From: Andrew Morton X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.19-pre4 i686) X-Accept-Language: en MIME-Version: 1.0 To: "Martin J. Bligh" CC: linux-kernel@vger.kernel.org, Tony.P.Lee@nokia.com, kessler@us.ibm.com, alan@lxorguk.ukuu.org.uk, Dave Jones Subject: Re: Event logging vs enhancing printk In-Reply-To: <87960000.1018307908@flay> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org "Martin J. Bligh" wrote: > >> ... > 1. There seems to me to be a race within the current SMP code (with or without > the event logging stuff). It seems that segments of the line could get interspersed > with segments of another line (or a whole other line) generated by another cpu ... > is this correct? > I'm not aware of that being the case. The output string is formed into a static buffer and then copied into the printk ring buffer all under spinlock_irqsave(logbuf_lock). If there is something wrong then it would be occurring at the other end - where data is taken out of the ring and is sent to the console device(s). The locking there is OK, I think? - - 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/