Re: [PATCH] atomic/bitops: Clarify ordering semantics for failed test_and_{}_bit()

2018-02-13 Thread Peter Zijlstra
On Tue, Feb 13, 2018 at 01:30:19PM +, Will Deacon wrote: > A test_and_{}_bit() operation fails if the value of the bit is such that > the modification does not take place. For example, if test_and_set_bit() > returns 1. In these cases, follow the behaviour of cmpxchg and allow the > operation

Re: [PATCH] atomic/bitops: Clarify ordering semantics for failed test_and_{}_bit()

2018-02-13 Thread Peter Zijlstra
On Tue, Feb 13, 2018 at 01:30:19PM +, Will Deacon wrote: > A test_and_{}_bit() operation fails if the value of the bit is such that > the modification does not take place. For example, if test_and_set_bit() > returns 1. In these cases, follow the behaviour of cmpxchg and allow the > operation