Messages in this thread | | | Date | Sat, 5 Sep 2015 19:53:02 +0200 | From | Peter Zijlstra <> | Subject | Re: futex atomic vs ordering constraints |
| |
On Wed, Sep 02, 2015 at 02:18:53PM -0700, Linus Torvalds wrote: > So I think we could possibly relax the requirements (and document this > very clearly) to say that the futex operation must be totally ordered > wrt any other _user_space_ accesses by that thread. I suspect a lot of > architectures can then say "we may be very weakly ordered, but kernel > entry/exit implies enough synchronization that we do not need any > futher memory barriers".
Right, so before sending this email I actually spoke to Ralf about this option, and he said that this is not actually well defined for MIPS.
But we could certainly document it such and let archs for which this is well documented (I would expect this to be most) choose that implementation.
| |