[PATCH v4 6/7] um: swithch futex ops to cmpxchg

Anton Ivanov anton.ivanov at cambridgegreys.com
Fri Dec 11 16:33:41 EST 2020


On 11/12/2020 20:12, Johannes Berg wrote:
> Typo in the subject :)
>
>> As a result of switching from emulated to true atomic cmpxchg
>> we can use cmpxchg in the corresponding um futex op.
> But this seems odd - maybe just reorder the patches so the futex code
> can directly have this squashed in?

You do not want to do that if you are still using the generic cmpxchg. 
That is quite cumbersome. If we reorder the cmpxchg before the futex, 
then it can be folded in.

I will do it in v5

A.

>
> johannes
>
>
>

-- 
Anton R. Ivanov
Cambridgegreys Limited. Registered in England. Company Number 10273661
https://www.cambridgegreys.com/




More information about the linux-um mailing list