On Thursday, 21 November 2024 10:28:06 CET Remi Pommarel wrote:
> > Needs more complex constructs with WRITE_ONCE or 
> > __sync_add_and_fetch/__sync_sub_and_fetch (which were handled before inside 
> > atomic_inc). The latter are not used that often in the kernel, so I wouldn't
> > want to introduce them in the batman-adv module.
> 
> What about using something in the line:
>         WRITE_ONCE(&bat_priv->tt.local_changes,
>                    READ_ONCE(&bat_priv->tt.local_changes) + 1);

This is what I meant with "more complex construct" :)

Kind regards,
        Sven

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to