Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756045AbWKVRcd (ORCPT ); Wed, 22 Nov 2006 12:32:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756047AbWKVRcd (ORCPT ); Wed, 22 Nov 2006 12:32:33 -0500 Received: from smtp.osdl.org ([65.172.181.25]:12510 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1756045AbWKVRcc (ORCPT ); Wed, 22 Nov 2006 12:32:32 -0500 Date: Wed, 22 Nov 2006 09:28:16 -0800 (PST) From: Linus Torvalds To: Pavel Emelianov cc: Morton Andrew Morton , mingo@redhat.com, Vivek Goyal , Adrian Bunk , linux kernel mailing list , dev@sw.ru Subject: Re: 2.6.19-rc6: known regressions (v4) In-Reply-To: <45641BEE.8060603@openvz.org> Message-ID: References: <20061121212424.GQ5200@stusta.de> <20061121213335.GB30010@in.ibm.com> <45641BEE.8060603@openvz.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1088 Lines: 27 On Wed, 22 Nov 2006, Pavel Emelianov wrote: > > This works for me, but is this normal that desc's fields are > modified non-atomically in note_interrupt()? This is all inside the normal interrupt handling logic, so it should be exactly as safe as any interrupt is: we don't allow the _same_ interrupt to be entered recursively at the same time. So yes, the counts etc are done non-atomically, but the code around it all guarantees that only one concurrent invocation happens per irq descriptor, so it's all ok. (The one exception to that may be the "desc->status" modification in case the irq is determined to have screamed, since "status" can be modified by a recursive interrupt coming in, but (a) that's a "this irq is dead" schenario _anyway_ and (b) if we ever care, we should lock it _there_, not somewhere else). Linus - 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/