Re: [lttng-dev] [RFC PATCH urcu] Fix: dynamic fallback to compat futex on sys_futex ENOSYS

2015-09-13 Thread Paul E. McKenney
On Fri, Sep 11, 2015 at 10:48:38AM -0400, Mathieu Desnoyers wrote: > Some MIPS processors (e.g. Cavium Octeon II) dynamically check if the > CPU supports ll/sc within sys_futex, and return a ENOSYS errno if they > don't, even though the architecture implements sys_futex. > > Handle this situation

Re: [lttng-dev] [RFC PATCH urcu] Fix: dynamic fallback to compat futex on sys_futex ENOSYS

2015-09-13 Thread Mathieu Desnoyers
- On Sep 13, 2015, at 12:29 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: > On Fri, Sep 11, 2015 at 10:48:38AM -0400, Mathieu Desnoyers wrote: >> Some MIPS processors (e.g. Cavium Octeon II) dynamically check if the >> CPU supports ll/sc within sys_futex, and return a ENOSYS errno

[lttng-dev] [RFC PATCH urcu] Fix: dynamic fallback to compat futex on sys_futex ENOSYS

2015-09-11 Thread Mathieu Desnoyers
Some MIPS processors (e.g. Cavium Octeon II) dynamically check if the CPU supports ll/sc within sys_futex, and return a ENOSYS errno if they don't, even though the architecture implements sys_futex. Handle this situation by always building the sys_futex compatibility layer, and fall-back on it if