Re: [PATCH] asm-generic/futex: Properly re-enable preemption in futex_atomic_cmpxchg_inatomic()

2016-04-14 Thread David Howells
Romain Perier wrote: > The futex subsystem relies on futex_atomic_cmpxchg_inatomic() to > perform an atomic cmpxchg. Most architectures provide their own > implementation. For those who do not, provides a > generic software implementations that works on !SMP

Re: [PATCH] asm-generic/futex: Properly re-enable preemption in futex_atomic_cmpxchg_inatomic()

2016-04-14 Thread David Howells
Romain Perier wrote: > The futex subsystem relies on futex_atomic_cmpxchg_inatomic() to > perform an atomic cmpxchg. Most architectures provide their own > implementation. For those who do not, provides a > generic software implementations that works on !SMP platforms. > > To provide an

Re: [PATCH] asm-generic/futex: Properly re-enable preemption in futex_atomic_cmpxchg_inatomic()

2016-04-14 Thread Peter Zijlstra
On Thu, Apr 14, 2016 at 03:36:03PM +0200, Romain Perier wrote: > Fixes: d9b9ff8c1889 ("sched/preempt, futex: Disable preemption in UP > futex_atomic_cmpxchg_inatomic() explicitly") > Signed-off-by: Romain Perier > --- > include/asm-generic/futex.h | 8 ++--

Re: [PATCH] asm-generic/futex: Properly re-enable preemption in futex_atomic_cmpxchg_inatomic()

2016-04-14 Thread Peter Zijlstra
On Thu, Apr 14, 2016 at 03:36:03PM +0200, Romain Perier wrote: > Fixes: d9b9ff8c1889 ("sched/preempt, futex: Disable preemption in UP > futex_atomic_cmpxchg_inatomic() explicitly") > Signed-off-by: Romain Perier > --- > include/asm-generic/futex.h | 8 ++-- > 1 file changed, 6

[PATCH] asm-generic/futex: Properly re-enable preemption in futex_atomic_cmpxchg_inatomic()

2016-04-14 Thread Romain Perier
The futex subsystem relies on futex_atomic_cmpxchg_inatomic() to perform an atomic cmpxchg. Most architectures provide their own implementation. For those who do not, provides a generic software implementations that works on !SMP platforms. To provide an atomicity guarantee on !SMP plaforms, the

[PATCH] asm-generic/futex: Properly re-enable preemption in futex_atomic_cmpxchg_inatomic()

2016-04-14 Thread Romain Perier
The futex subsystem relies on futex_atomic_cmpxchg_inatomic() to perform an atomic cmpxchg. Most architectures provide their own implementation. For those who do not, provides a generic software implementations that works on !SMP platforms. To provide an atomicity guarantee on !SMP plaforms, the