From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757805AbYE0Ilh (ORCPT ); Tue, 27 May 2008 04:41:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756616AbYE0IlZ (ORCPT ); Tue, 27 May 2008 04:41:25 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:45050 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757449AbYE0IlY (ORCPT ); Tue, 27 May 2008 04:41:24 -0400 Date: Tue, 27 May 2008 09:24:30 +0100 From: Alan Cox To: David Miller Cc: benh@kernel.crashing.org, linux-arch@vger.kernel.org, scottwood@freescale.com, linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, tpiepho@freescale.com Subject: Re: MMIO and gcc re-ordering issue Message-ID: <20080527092430.6380d962@core> In-Reply-To: <20080526.192812.184590464.davem@davemloft.net> References: <1211852026.3286.36.camel@pasglop> <20080526.184047.88207142.davem@davemloft.net> <1211854540.3286.42.camel@pasglop> <20080526.192812.184590464.davem@davemloft.net> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > It's just another complicated thing for driver authors to get wrong. > The other side of the coin is of course the cost. > > The only thing I am absolutely sure of is that we should make a > decision fast, document it, and just stick to it. It's unfortunate that the __read/___write versions have other different semantics. The default should definitely be ordered but having un-ordered ones as an option would be good for zapping the hot paths that matter. Most I/O paths aren't even worth the thinking time for non-ordered I/O. Alan