Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750778AbWIACbS (ORCPT ); Thu, 31 Aug 2006 22:31:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750808AbWIACbS (ORCPT ); Thu, 31 Aug 2006 22:31:18 -0400 Received: from wx-out-0506.google.com ([66.249.82.235]:11304 "EHLO wx-out-0506.google.com") by vger.kernel.org with ESMTP id S1750778AbWIACbR (ORCPT ); Thu, 31 Aug 2006 22:31:17 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SBT6ClMXA+zN0bOBk0+ny/B2dONSuf5pZXvegZbOwL1eVR+MHRH9fuvTwx3EGpQ6LA+IOZpdlUqd4gAA2RUHzSkjveoW+poBUJqjMaIX8xziMmux32j0ty+qv7eFkBiC56MKscYJYyx1WPwyVuAlMmkN9l+fF0x/2hHJmQ553V0= Message-ID: Date: Fri, 1 Sep 2006 08:01:16 +0530 From: "Rajat Jain" To: "Manoj Awasthi" Subject: Re: Spinlock query Cc: "Rik van Riel" , "Rick Brown" , kernelnewbies@nl.linux.org, linux-kernel@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7783925d0608291912i3f04d460kc9edebf9d358dbc3@mail.gmail.com> <44F501B3.9070200@surriel.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 815 Lines: 25 > > > You need to use spin_lock_irqsave() from process context. > > From the interrupt handler itself it doesn't hurt, but it > > shouldn't matter much since interrupt handlers should not > > get preempted. > > > but interrupt handlers run in interrupt context when interrupts are already > disabled. Is that correct ? > AFAIK the interrupt that the handler is serving is guaranteed to be disabled on all the processors. In addition, if the interrupt was registered with SA_INTERRUPT flag, all the interrupts will be disabled on the current processor. Regards, Rajat - 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/