Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 3 Nov 2002 22:28:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 3 Nov 2002 22:28:42 -0500 Received: from modemcable077.18-202-24.mtl.mc.videotron.ca ([24.202.18.77]:26892 "EHLO montezuma.mastecende.com") by vger.kernel.org with ESMTP id ; Sun, 3 Nov 2002 22:28:41 -0500 Date: Sun, 3 Nov 2002 22:36:26 -0500 (EST) From: Zwane Mwaikambo X-X-Sender: zwane@montezuma.mastecende.com To: Robert Love cc: William Lee Irwin III , Pete Zaitcev , Subject: Re: interrupt checks for spinlocks In-Reply-To: <1036378887.750.96.camel@phantasy> Message-ID: 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: 852 Lines: 23 On 3 Nov 2002, Robert Love wrote: > In other words, a lock unique to your interrupt handler does not need to > disable interrupts (since only that handler can grab the lock and it is > disabled). > > If other handlers can grab the lock, interrupts need to be disabled. The only way would be running with SA_INTERRUPT for that isr and any others on that line which might contend for the same lock. Determining otherwise seems like too much trouble, and anyway i can't recall ever seeing such a scenario in drivers/ Basically i think we should forget about option 1. Zwane -- function.linuxpower.ca - 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/