[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <464450CC.7010002@s5r6.in-berlin.de>
Date: Fri, 11 May 2007 13:17:32 +0200
From: Stefan Richter <stefanr@...6.in-berlin.de>
To: Jonathan Corbet <corbet@....net>
CC: linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
Jesper Juhl <jesper.juhl@...il.com>,
Randy Dunlap <randy.dunlap@...cle.com>,
Heikki Orsila <shdl@...alwe.fi>,
"H. Peter Anvin" <hpa@...or.com>,
Satyam Sharma <satyam.sharma@...il.com>
Subject: Re: [PATCH] "volatile considered harmful", take 2
Jonathan Corbet wrote:
> +The key point to understand with regard to volatile is that its purpose is
> +to suppress optimization, which is almost never what one really wants to
> +do. In the kernel, one must protect shared data structures against
> +unwanted concurrent access, which is very much a different task. As it
> +happens, once the critical sections are properly implemented, the compiler
> +optimization issues which volatile was added to prevent will have been
> +taken care of in a more efficient way.
The "As it happens... efficient way." sentence is hard to read: It is
long and nested like in German, combined with several English
ambiguities (e.g. WRT noun vs. verb vs. adjective). Maybe just leave
this sentence out, as it is redundant to later statements like "In
properly-written kernel code, volatile can only serve to slow things down".
--
Stefan Richter
-=====-=-=== -=-= -=-==
http://arcgraph.de/sr/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists