Messages in this thread | | | Subject | Re: Possible memory ordering bug in page reclaim? | From | Benjamin Herrenschmidt <> | Date | Sun, 16 Oct 2005 08:17:00 +1000 |
| |
On Sat, 2005-10-15 at 12:29 -0700, David S. Miller wrote: > From: Linus Torvalds <torvalds@osdl.org> > Date: Sat, 15 Oct 2005 09:57:47 -0700 (PDT) > > > On Sat, 15 Oct 2005, Herbert Xu wrote: > > > > > > Yes atomic_add_negative should always be a barrier. > > > > I disagree. That would be very expensive on anything but x86, where it > > just happens to be true for other reasons. Atomics do _not_ implement > > barriers. > > When they return values, they are defined to be barriers. > It's even on the documentation :-)
Ahhh, good to know :)
/me should read the documentation sometimes....
Ben.
- 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/
| |