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

Anton Ivanov
2020-12-11T21:33:45Z

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