Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934566AbXEMQaR (ORCPT ); Sun, 13 May 2007 12:30:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758939AbXEMQaH (ORCPT ); Sun, 13 May 2007 12:30:07 -0400 Received: from khc.piap.pl ([195.187.100.11]:45850 "EHLO khc.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758519AbXEMQaG (ORCPT ); Sun, 13 May 2007 12:30:06 -0400 To: Robert Hancock Cc: Bill Davidsen , linux-kernel , Jonathan Corbet Subject: Re: [PATCH] "volatile considered harmful" document References: <4646082D.2080502@shaw.ca> From: Krzysztof Halasa Date: Sun, 13 May 2007 18:30:04 +0200 In-Reply-To: <4646082D.2080502@shaw.ca> (Robert Hancock's message of "Sat, 12 May 2007 12:32:13 -0600") 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: 435 Lines: 12 Robert Hancock writes: > You don't need volatile in that case, rmb() can be used. rmb() invalidates all compiler assumptions, it can be much slower. -- Krzysztof Halasa - 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/