[PATCH RFC 08/15] futex: UP futex_atomic_op_inuser() relies on disabled preemption

2015-05-06 Thread David Hildenbrand
Let's explicitly disable/enable preemption in the !CONFIG_SMP version of futex_atomic_op_inuser, to prepare for pagefault_disable() not touching preemption anymore. Otherwise we might break mutual exclusion when relying on a get_user()/ put_user() implementation. Signed-off-by: David Hildenbrand

[PATCH RFC 08/15] futex: UP futex_atomic_op_inuser() relies on disabled preemption

2015-05-06 Thread David Hildenbrand
Let's explicitly disable/enable preemption in the !CONFIG_SMP version of futex_atomic_op_inuser, to prepare for pagefault_disable() not touching preemption anymore. Otherwise we might break mutual exclusion when relying on a get_user()/ put_user() implementation. Signed-off-by: David Hildenbrand