From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750810AbWGFU16 (ORCPT ); Thu, 6 Jul 2006 16:27:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750811AbWGFU16 (ORCPT ); Thu, 6 Jul 2006 16:27:58 -0400 Received: from rtr.ca ([64.26.128.89]:6560 "EHLO mail.rtr.ca") by vger.kernel.org with ESMTP id S1750810AbWGFU15 (ORCPT ); Thu, 6 Jul 2006 16:27:57 -0400 Message-ID: <44AD724B.5020307@rtr.ca> Date: Thu, 06 Jul 2006 16:27:55 -0400 From: Mark Lord User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Linus Torvalds Cc: Chris Friesen , Arjan van de Ven , "linux-os (Dick Johnson)" , Ingo Molnar , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [patch] spinlocks: remove 'volatile' References: <20060705114630.GA3134@elte.hu> <20060705101059.66a762bf.akpm@osdl.org> <20060705193551.GA13070@elte.hu> <20060705131824.52fa20ec.akpm@osdl.org> <20060705204727.GA16615@elte.hu> <20060705214502.GA27597@elte.hu> <20060706081639.GA24179@elte.hu> <1152187268.3084.29.camel@laptopd505.fenrus.org> <44AD5357.4000100@rtr.ca> <44AD658A.5070005@nortel.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > > On Thu, 6 Jul 2006, Chris Friesen wrote: >> The C standard requires the use of volatile for signal handlers and setjmp. > > Actually, the C standard requires "sigatomic_t". That's sig_atomic_t, which simply guarantees that the data item can be read or written indivisibly with respect to signal handlers. The standard goes on to suggest using it in combination with volatile as needed. Cheers