Re: [PATCH] bluetooth: optimize barrier usage for Rmw atomics

From: Marcel Holtmann
Date: Wed Jan 29 2020 - 14:03:42 EST


Hi Davidlohr,

> Use smp_mb__before_atomic() instead of smp_mb() and avoid the
> unnecessary barrier for non LL/SC architectures, such as x86.
>
> Signed-off-by: Davidlohr Bueso <dbueso@xxxxxxx>
> ---
> net/bluetooth/hidp/core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel