Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751490AbWCGSPL (ORCPT ); Tue, 7 Mar 2006 13:15:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751475AbWCGSPL (ORCPT ); Tue, 7 Mar 2006 13:15:11 -0500 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:57564 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S1751458AbWCGSPJ (ORCPT ); Tue, 7 Mar 2006 13:15:09 -0500 Subject: Re: Memory barriers and spin_unlock safety From: Alan Cox To: David Howells Cc: Linus Torvalds , akpm@osdl.org, ak@suse.de, mingo@redhat.com, jblunck@suse.de, bcrl@linux.intel.com, matthew@wil.cx, linux-arch@vger.kernel.org, linuxppc64-dev@ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <31420.1141753019@warthog.cambridge.redhat.com> References: <5041.1141417027@warthog.cambridge.redhat.com> <32518.1141401780@warthog.cambridge.redhat.com> <1146.1141404346@warthog.cambridge.redhat.com> <31420.1141753019@warthog.cambridge.redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 07 Mar 2006 18:18:16 +0000 Message-Id: <1141755496.31814.56.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 566 Lines: 16 On Maw, 2006-03-07 at 17:36 +0000, David Howells wrote: > Hmmm... We don't actually have io_wmb()... Should the following be added to > all archs? > > io_mb() > io_rmb() > io_wmb() What kind of mb/rmb/wmb goes with ioread/iowrite ? It seems we actually need one that can work out what to do for the general io API ? - 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/