Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753410AbZJ0KV0 (ORCPT ); Tue, 27 Oct 2009 06:21:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753212AbZJ0KVZ (ORCPT ); Tue, 27 Oct 2009 06:21:25 -0400 Received: from ns2.intersolute.de ([193.110.43.67]:38584 "EHLO ns2.intersolute.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753205AbZJ0KVZ (ORCPT ); Tue, 27 Oct 2009 06:21:25 -0400 Message-ID: <4AE6C998.9040405@lumino.de> Date: Tue, 27 Oct 2009 11:21:12 +0100 From: Michael Schnell User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: "Leonidas ." CC: Stefan Richter , Noah Watkins , linux-kernel Subject: Re: Difference between atomic operations and memory barriers References: <7ADB5FD7-9C97-4987-BC20-997258B25FD2@noahdesu.com> <4AE5F1D2.9030908@s5r6.in-berlin.de> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 502 Lines: 16 Leonidas . wrote: > > any_t *ptr = something; > > is always atomic even on SMPs without using locks, barriers then my > doubt is cleared. Thanks. I assume that this only holds if the pointer (not the thing it points to) is denoted as volatile. -Michael -- 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/