linux-mips-fnet
[Top] [All Lists]

Re: [patch] linux 2.4.17: An mb() rework

To: Ralf Baechle <ralf@oss.sgi.com>
Subject: Re: [patch] linux 2.4.17: An mb() rework
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Tue, 5 Feb 2002 11:33:23 +0100 (MET)
Cc: Jason Gunthorpe <jgg@debian.org>, linux-mips@fnet.fr, linux-mips@oss.sgi.com
In-reply-to: <20020204180258.A6124@dea.linux-mips.net>
Organization: Technical University of Gdansk
On Mon, 4 Feb 2002, Ralf Baechle wrote:

> Bugs due to surprise memory reordering are entirely unfun to debug, so be
> paranoid.  They're out there to get you ...

 The rule of thumb is to use barriers whenever a *device* requires them
and depend on the platform to define them appropriately.  They will expand
to nothing if unneeded, so there is no trade-off.

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

<Prev in Thread] Current Thread [Next in Thread>