Re: [rfc][patch] i386: remove comment about barriers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Piggin
Date: Sunday, September 30, 2007 - 5:05 am

On Sat, Sep 29, 2007 at 12:12:52PM -0700, Davide Libenzi wrote:

Oh I realise it doesn't work with current implementations (powerpc at
least also would be broken I think). And I've always assumed no... But
the question was just whether the Linux memory model requires it (it
theoretically could require that smp_rmb is sequentially ordered WRT
smp_wmb without actually sequentially ordering stores around itself).




OK, good to hear it has been discussed. I didn't see anything explicit
in the documentation about it.  A lot of the literature often says that
"barrier instructions" have a sequential ordering, so it could be useful
to explicitly say this isn't the case for Linux for rmb vs wmb.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[rfc][patch] i386: remove comment about barriers, Nick Piggin, (Sat Sep 29, 6:28 am)
Re: [rfc][patch] i386: remove comment about barriers, Linus Torvalds, (Sat Sep 29, 9:11 am)
Re: [rfc][patch] i386: remove comment about barriers, Davide Libenzi, (Sat Sep 29, 12:12 pm)
Re: [rfc][patch] i386: remove comment about barriers, Paul E. McKenney, (Sat Sep 29, 8:16 pm)
Re: [rfc][patch] i386: remove comment about barriers, Nick Piggin, (Sun Sep 30, 4:58 am)
Re: [rfc][patch] i386: remove comment about barriers, Nick Piggin, (Sun Sep 30, 5:05 am)
Re: [rfc][patch] i386: remove comment about barriers, Andi Kleen, (Sun Sep 30, 8:09 am)
Re: [rfc][patch] i386: remove comment about barriers, David Howells, (Mon Oct 1, 6:14 am)